Page 1 of 1

process cannot access the file "xxx" because it is

Posted: Thu Sep 29, 2005 11:40 pm
by 8123676
Hi,
I am getting the following error randomly.

The process cannot access the file "C:\inetpub\wwwroot\Test\custom\_chart_temp\WebChart1127001386246669880324.png" because it is being used by another process

I occasionally get this error when my web page loads.
It has 2 frames that each load a tchart. They should never be loading the same xxx.png file and yet I get the above error.

basically the page has the following structure


<body MS_POSITIONING="GridLayout">
<form id="frm1" method="post" runat="server">
<DIV id="dvGraph">
<IFRAME id="fraPrimaryGraph" name="fraGraph" src="InsuranceRecommendationGraph.aspx"
frameBorder="no" width="100%" height="362"></IFRAME>
</DIV>

<DIV id="dvGraph2">
<IFRAME id="fraSecondaryGraph" name="fraGraph" src="InsuranceRecommendationGraph2.aspx"
frameBorder="no" width="100%" height="362"></IFRAME>
</DIV>
</form>
</body>

Both aspx pages contain a tchart.
I am using version 1.1.1452.42972 TeeChart Pro

Any ideas why I would get the error?

Posted: Fri Sep 30, 2005 10:22 am
by narcis
Hi Bev,

You could try using:

Code: Select all

WebChart1.TempChart = Steema.TeeChart.Web.TempChartStyle.Session
It could be also helpful for you having a look at "Tutorial9 - ASP.NET Applications". You'll find the tutorials at the TeeChart program group. You should look specially at the GetChart file section.