在 Asp.Net 中使用 Dundas.Charting
在 Asp.Net 中使用 Dundas.Charting 时,我遇到以下异常:-
Stack trace:
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)
我在 IIS 7.0(集成模式)中使用它,而 web.config 具有所有必要的属性,如下所示:-
在 appSettings 下
1. add key="ChartHttpHandler" value="Storage=memory;Timeout=180;Url=~/temp/;"
在 httpHandlers 下
2. add path="ChartAxd.axd" verb="*" type="Dundas.Charting.WebControl.ChartHttpHandler" validate="false"
在 handlers 下
3. add name="ChartAxd.axd" path="ChartAxd.axd" verb="*" preCondition="integratedMode" type="Dundas.Charting.WebControl.ChartHttpHandler" resourceType="Unspecified"
虽然我在另一台服务器上使用相同的代码副本和 web.config,但一切正常。我在 IIS 上遗漏了什么吗?期待您的来信。 非常感谢。
I am getting the following exception, while using Dundas.Charting in Asp.Net:-
Stack trace:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里的问题是因为您使用了
Storage=memory;
,将其更改为Storage=file;
如下:同时添加两个目录,以确保
~/ Tempo
,以及保存它们的直接完整路径。Your issue here is because you use the
Storage=memory;
, change it toStorage=file;
as:Also add both directories for be sure, the
~/Tempo
, and the direct full path to be saved them.