0

MVC .NET 4.0 application is using Charting component and sporadically I get an unauthorized access error - the key word is sporadically.

web.config entry is as follows <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\Temp\AspNetCharting\;deleteAfterServicing=false;" />

I was looking at other storage modes, i.e. memory or session, but file mode should work and I'm not quite sure why this fails for the same user and the same chart sporadically.

4

1 回答 1

1

我在留言板上发现了一些其他人的帖子,声称使用

chart1.ImageStorageMode = ImageStorageMode.UseImageLocation 

Page_Load事件解决了他们的问题。

于 2012-05-01T14:41:59.513 回答