网站发布后, ReportViewer 控件不能正常显示
2014-08-12 13:41
295 查看
异常信息如图显示
:
![](file:///d:/360se6/USERDA~1/Temp/201210~1.JPG)
解决方法如下:
原因是因为IIS7.5读取web.config的方式改变了,不再读取<system.web>的<httpHandlerss>的设置,而是改成了读取<system.webServer>的<handlers>的设置。
<system.web> <httpHandlers> <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"/>
</httpHandlers> </system.web>
在IIS7.5下要改成如下:
<system.webServer>
<handlers> <add name="ReportViewerWebControl"
path="Reserved.ReportViewerWebControl.axd" verb="*"type="Microsoft.Reporting.WebForms.HttpHandler,
Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </handlers> </system.webServer>
设置完成,报表可以正常显示
:
解决方法如下:
原因是因为IIS7.5读取web.config的方式改变了,不再读取<system.web>的<httpHandlerss>的设置,而是改成了读取<system.webServer>的<handlers>的设置。
<system.web> <httpHandlers> <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"/>
</httpHandlers> </system.web>
在IIS7.5下要改成如下:
<system.webServer>
<handlers> <add name="ReportViewerWebControl"
path="Reserved.ReportViewerWebControl.axd" verb="*"type="Microsoft.Reporting.WebForms.HttpHandler,
Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </handlers> </system.webServer>
设置完成,报表可以正常显示
相关文章推荐
- Skyline网站发布后,在客户端浏览3D地图不能正常显示,客户端需要安装的程序解析
- ASP.NET网站中用到一个FlashUpload上传控件服务器上Flash就不能正常显示 axd映射问题
- ocx控件注册信息丢失导致IE部分网站不能正常显示
- .net 4.0发布后不能正常显示图片问题
- 日期控件(DateField)在FireFox下不能正常显示的解决办法
- DundasWebChart在IIS7.5 windows2008 64位版发布时不能正常显示
- 网站发布后Bootstrap框架引用woff字体无法正常显示的解决方法
- VC6里改变对话框资源ID号后classwizard不能正常显示控件ID的原因及解决方法
- Fonts display<网站字体不能正常显示>
- ISA发布MOSS网站内容查询WEB部件不能显示问题?
- ArcGIS Server在Windows7和Windows2008发布地图,字体符号不能正常显示
- .net 4.0发布后不能正常显示图片问题,将iis应用程序池设置成4.0版本,报告错误:处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”
- TreeView控件不能正常显示
- 解决ReportViewer在CHROME中不能正常显示
- 非英文[字符]在网站上不能正常显示
- 日期控件(DateField)在FireFox下不能正常显示的解决办法
- linux挂载windows共享后,网站里的图片不能正常显示
- 在用VS2008调试网站的时候,突然页面不能正常显示了,IE显示“无法显示该网页”。
- IE8下中国银行网站不能正常显示
- Struts2日期控件datatimepicker不能正常显示的问题