process cannot access the file "xxx" because it is

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Bev
Newbie
Newbie
Posts: 7
Joined: Fri Jan 30, 2004 5:00 am

process cannot access the file "xxx" because it is

Post by Bev » Thu Sep 29, 2005 11:40 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Sep 30, 2005 10:22 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply