We have a website with 6 gauges that refreshes every 5 mins. After running for a few hours we get these errors. Tried playing with the deployment options with no luck. Can anybody help?
Server Error in '/ePerf2' Application.
_____
The process cannot access the file 'C:\inetpub\wwwroot\web1\RT2\GaugeImages\UltraGauge4_ewbeqv1e1m55r5grb1lknux0_0.png' because it is being used by another process.
clsGauge.DeploymentScenario.ImageType = Infragistics.UltraGauge.Resources.GaugeImageType.Png
clsGauge.DeploymentScenario.DeleteOldImages = False
clsGauge.DeploymentScenario.Mode = Infragistics.UltraGauge.Resources.ImageDeploymentMode.FileSystem
clsGauge.DeploymentScenario.ImageURL = "GaugeImages/#CLIENT_#SESSION_#SEQNUM(1000).#EXT"
Hi hadihadi,
Thank you for posting in the community and apologies for the delayed response.
As the message you have provided suggests, the issue is probably caused by more than one process attempting to access the same file simultaneously. For the sake of testing I suggest that you try setting DeleteOldImages deployment property to true. Is the issue occuring always for the same gauge (i.e. UltraGauge 4). Any information or samples illustrating the scenario would be extremely appreciated and will help to replicate and isolate the matter.
Please feel free to contact me if you have any questions.
Please feel free to contact me if you need assistance regarding this matter.
Hi,
I am still having the issue and I think I know why but don't know how to solve it. The issue is that in our system, our webpage updates automatically every 5 minutes and our users can have 3 or more of the pages open in different tabs. I am guessing that at some point two tabs are trying to update at the same time, the system is then trying to write to the same file. Any ideas?
Cheers,
Hadi
Hi Hadi,
Thank you for your reply.
As the issue seems specific, perhaps you can make use of a process monitor as suggested at:
http://forums.iis.net/t/1146607.aspx
in order to check what process is obtaining the lock on the WebGauge file(s) ?
Please do not hesitate to contact me with any developments on the matter.
Please feel free to contact me if you need further assistance with this matter.