包含 Microsoft Chart Control 的页面返回服务不可用
我在使用包含 Microsoft Chart 控件的 asp.net mvc 视图时遇到了令人沮丧的问题。当我请求包含控件的视图时,出现以下错误。
服务不可用
HTTP 错误 503。该服务是 不可用。
当我在 Visual Studio 2008 开发服务器下运行该项目时,它工作正常。当我将项目部署到临时服务器时,出现错误。当我部署到同一服务器上的不同站点的虚拟目录下时,这更加令人沮丧。
发生这种情况时,我在事件日志或 elmah 中也没有收到任何错误消息。还有其他人遇到过这种情况吗?你做了什么来解决这个问题?
I have a frustrating problem with an asp.net mvc view containing the Microsoft Chart control. When I request the view containing the control I get the following error.
Service Unavailable
HTTP Error 503. The service is
unavailable.
When I run the project under the visual studio 2008 dev server it works fine. When I deploy the project to the staging server I get the error. To make this even more frustrating when I deploy to a different site on the same server under a virtual directory it works.
I also get no error messages in the event log or elmah when this happens. Has anyone else encountered this? What did you do to resolve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否确保在 web.config 中定义了图表 http 处理程序/模块,并且图表 dll 位于暂存站点的 bin 中?
Have you made sure the Chart http handlers/modules are defined in the web.config and that the charting dlls are in the bin on the staging site?
我不认为这是图表控件本身的问题。当我创建一个纯 html 视图来加载报告控件时,我遇到了同样的错误。
我相信这与其他 HttpHandler 组件之一存在某种冲突。我正在使用 ELMAH 和 Telerik MVC 控件。当我将控制器/路由从 ReportController 重命名为 ReportingController 时,一切正常。
I don't believe this was an issue with the Chart control itself. When I created a plain html view to load on the Report control I got the same error.
I believe this was some kind of conflict with one of the other HttpHandler components. I am using ELMAH and the Telerik MVC Controls. When I renamed the Controller/Routes from ReportController to ReportingController everything worked fine.