开发者

Using Dundas.Charting in Asp.Net

开发者 https://www.devze.com 2023-01-17 00:33 出处:网络
I am getting the following exception, while using Dundas.Charting in Asp.Net:- Stack tr开发者_JS百科ace:

I am getting the following exception, while using Dundas.Charting in Asp.Net:-

Stack tr开发者_JS百科ace:    
   at Dundas.Charting.WebControl.ChartHttpHandler.b(HttpContext )
   at Dundas.Charting.WebControl.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)

I am using it in, IIS 7.0 (integrated mode), while web.config has all the necessary attributes there as well such as following:-

Under appSettings

1. add key="ChartHttpHandler" value="Storage=memory;Timeout=180;Url=~/temp/;" 

Under httpHandlers

2. add path="ChartAxd.axd" verb="*" type="Dundas.Charting.WebControl.ChartHttpHandler" validate="false" 

Under handlers

3. add name="ChartAxd.axd" path="ChartAxd.axd" verb="*" preCondition="integratedMode" type="Dundas.Charting.WebControl.ChartHttpHandler" resourceType="Unspecified"

While, I am using the same replica of code and web.config on another server, all things work fine. Am I missing something on IIS? Looking forward to hear from you. Many thanks.


Your issue here is because you use the Storage=memory;, change it to Storage=file; as:

<add key="ChartHttpHandler" value="Storage=file;Timeout=60; Url=~/Tempo/;Dir=c:\Inetpub\vhosts\sitename\httpdocs\Tempo\" />

Also add both directories for be sure, the ~/Tempo, and the direct full path to be saved them.

0

精彩评论

暂无评论...
验证码 换一张
取 消