开发者

Microsoft ReportViewer not rendering on server

开发者 https://www.devze.com 2022-12-11 22:41 出处:网络
I have a reportviewer control that works fine locally, but when deployed to the IIS 7 webserver, it just returns a blank page (or XML error in Firefox).

I have a reportviewer control that works fine locally, but when deployed to the IIS 7 webserver, it just returns a blank page (or XML error in Firefox).

I thought it was permission related but I've given everyone permission as a Hail Mary and still I get a blank report with typ开发者_如何学运维ically sparse MS error handling to help me track down the issue.

Has anyone else run into this?

Using IIS 7 and ReportViewer 9.0


If your using IIS 6 for development and IIS 7 for deployment. IIS7 it might be using integrated pipeline. In that case

<add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

will not fire and nothing is rendered. Either you switch to classic pipeline or update your web.config. HttpHandler have a different section in web.config for intregrated pipeline.

http://msdn.microsoft.com/en-us/library/ms228090.aspx


I added the name attribute to the what Fahad posted and this worked great. Thanks! I can now use my MVC project with a ReportViewerControl on a WebForms page. Exactly what I needed.

<add verb="*" name="ReportViewerWebControl" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
0

精彩评论

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