在Win7中做的Asp.Net网站,为了省事,直接用的RDLC本地报表。
部署到IIS的时候出现问题,ReportViewer里显示错误
HTTP 错误 404.0 - Not Found
您要找的资源已被删除、已更名或暂时不可用。
网上查找后发现,要在IIS中添加ReportViewer的处理程序映射。
具体设置如下:
Open Internet Information Services (IIS) Manager and select your Web
application.
Under IIS area, double-click on Handler Mappings icon.
At the Action pane on your right, click on Add Managed Handler.
At the Add Managed Handler dialog, enter the following:
Request path: Reserved.ReportViewerWebControl.axd
Type: Microsoft.Reporting.WebForms.HttpHandler
Name: Reserved-ReportViewerWebControl-axd
Click OK.