在事件查看器ASP.NET图表控件的错误

问题描述:

我一直使用ASP.NET图表控件上WIN2K3一段时间(32位)设置没有任何问题,但已经注意到,我们的新win2k8(64位)箱我越来越显示出从事件查看器一句警告信息,图表控件。

I have been using the ASP.NET chart controls for a while on win2k3 (32bit) setups without any issue but have noticed that on our new win2k8 (64bit) box I am getting a warning message showing up in the event viewer from the chart control.

在我的web.config文件中,我有以下标记告诉图表控件在那里我可以存储临时文件:

In my web.config file I have the following tag telling the Chart Control where I can store the Temp Files:

<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

下面是由控制产生的警告消息:


Below is the warning message produced by the control:


事件code:3005
事件消息:发生未处理的异常。
活动时间:2009/10/7下午2时40分03秒
事件时间(UTC):2009/10/7下午2时40分03秒
事件ID:237c3b208962429e8bbc5a48​​ffd177f0
事件序列:2860
事件发生:26
事件详细信息code:0

Event code: 3005 Event message: An unhandled exception has occurred. Event time: 10/7/2009 2:40:03 PM Event time (UTC): 10/7/2009 2:40:03 PM Event ID: 237c3b208962429e8bbc5a48ffd177f0 Event sequence: 2860 Event occurrence: 26 Event detail code: 0

应用程序信息:
    应用领域:/ LM / W 3 SVC / 2 / ROOT-1-128993655360497729
    信任级别:完整
    应用程序虚拟路径:/
    应用程序路径:C:\\ DATA \\网站\\ mydomain.com \\
    机器名称:231692-WEB

Application information: Application domain: /LM/W3SVC/2/ROOT-1-128993655360497729 Trust level: Full Application Virtual Path: / Application Path: C:\data\sites\mydomain.com\ Machine name: 231692-WEB

进程信息:
    进程ID:4068
    进程名:w3wp.exe
    帐户名:NT AUTHORITY \\ NETWORK SERVICE

Process information: Process ID: 4068 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE

异常信息:
    异常类型:ArgumentException的
    异常消息:图像没有找到。

Exception information: Exception type: ArgumentException Exception message: The image is not found.

请求信息:
    请求URL:http://www.mydomain.com/ChartImg.axd?i=chart%5F0%5F3.png&g=bccc8aa11abb470980c60e8cf1e71e15
    请求路径:/ChartImg.axd
    用户主机地址:我的域名IP
    用户:

    通过身份验证:假
    身份验证类型:

    线程帐户名:NT AUTHORITY \\ NETWORK SERVICE

Request information: Request URL: http://www.mydomain.com/ChartImg.axd?i=chart%5F0%5F3.png&g=bccc8aa11abb470980c60e8cf1e71e15 Request path: /ChartImg.axd User host address: my domain ip User:
Is authenticated: False Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

主题的信息:
    线程ID:7
    线程帐户名:NT AUTHORITY \\ NETWORK SERVICE
    假冒:假
    堆栈跟踪:在System.Web.UI.DataVisualization.Charting.ChartHttpHandler.ProcessSavedChartImage(HttpContext的背景下)
   在System.Web.UI.DataVisualization.Charting.ChartHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext上下文)
   在System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   在System.Web.HttpApplication.ExecuteStep(IExecutionStep一步,布尔和放大器; completedSynchronously)


Thread information: Thread ID: 7 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.ProcessSavedChartImage(HttpContext context) at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


这是值得指出的是所有图表图像的正确显示在屏幕上,所以我不知道何时/何图像未找到错误正在造成的。这是一个64位的问题?

It's worth pointing out that ALL of the chart images are displayed correctly on the screen so I'm not sure when/where the image not found error is being caused. Is this a 64bit issue?

谢谢,

我花了一周寻找到这个问题,似乎没有人有一个答案,为什么我在事件查看器获取的警告信息。

I spent the week looking into this issue and no one seems to have an answer as to why I am getting the warning messages in Event Viewer.

问过太主MS图表论坛这个问题,但没有运气。请看这里:http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/75f50254-0f02-4a73-bfbe-afab31f15f77

Have asked this question on the main MS Chart forums too but no luck. link here: http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/75f50254-0f02-4a73-bfbe-afab31f15f77

将标志着作为回答刚才关闭的问题,但将在未来更新,如果我不能找到一个答案。我怀疑这是发生在越来越多的人,而是因为对前端的一切看起来不错,从来没有人真正检查日志,所以他们可能没有意识到它的发生给他们。

Will mark as answered just to close question but will update in the future if I ever find an answer. I suspect it is happening to more people but because everything on the front end looks ok no one ever really checks the logs so they might not realize it's happening to them.