I am trying to integrate the SSRS WebForms report viewer into an ASP.NET MVC2 app. The viewer comes up, but none of the javascript is evaluated. It looks like all of the javascript and icon resources come out of calls to the "Reserved.ReportViewerWebControl.axd" pseudo url. My MVC app is ignoring calls to .axd URI's, but I get tons of javascript errors in the page that's hosting the report viewer. Is there something else that I need to do to get the calls to the .axd handler to work? That particular handler is in my web.config and it looks like this:
我正在尝试将SSRS WebForms报表查看器集成到ASP.NET MVC2应用程序中。查看器出现,但没有评估javascript。看起来所有的javascript和图标资源都来自对“Reserved.ReportViewerWebControl.axd”伪URL的调用。我的MVC应用程序忽略了对.axd URI的调用,但是在托管报表查看器的页面中出现了大量的javascript错误。我需要做些什么来调用.axd处理程序才能工作?那个特殊的处理程序在我的web.config中,它看起来像这样:
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
validate="false" />
For what it's worth, our SSRS is SQL2005, but I am using the SQL2008 report viewer. Do I have to use the SQL2005 reportviewer web control?
对于它的价值,我们的SSRS是SQL2005,但我使用的是SQL2008报表查看器。我是否必须使用SQL2005 reportviewer Web控件?
Thanks, Matthew
谢谢,马修
1 个解决方案
#1
1
Turns out I didn't set up the .axd HttpHandler in the correct place in the web.config. I had modified the IIS6 section, but not the IIS7 section. Works like a champ now.
事实证明我没有在web.config中的正确位置设置.axd HttpHandler。我修改了IIS6部分,但没有修改IIS7部分。现在就像一个冠军。
#1
1
Turns out I didn't set up the .axd HttpHandler in the correct place in the web.config. I had modified the IIS6 section, but not the IIS7 section. Works like a champ now.
事实证明我没有在web.config中的正确位置设置.axd HttpHandler。我修改了IIS6部分,但没有修改IIS7部分。现在就像一个冠军。