Reputation: 537
after publishing mvc web application to IIS 7.0, the problem was that the reports are not working, however, i did the following but it didn't worked :
Installed MICROSOFT® REPORT VIEWER 2012 RUNTIME package from http://www.microsoft.com/en-us/download/details.aspx?id=35747 After installation, found Microsoft.ReportViewer.WebForms.dll in C:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer
go to IIS Manager --> choose the Web Application which contains the reports, and then choose Handler Mappings
in Handler Mappings, Add a new Handler, Set its info as the following:
Request Path : Reserved.ReportViewerWebControl.axd
Type: Microsoft.Reporting.WebForms
Name: Reserved.ReportViewerWebControl.axd
Found the below handler got added automatically in web.config under
system webserver section in
<handlers>
<add name="Reserved-ReportViewerWebControl-axd" path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler" resourceType="Unspecified" preCondition="integratedMode" />
</handlers>
I'm using Visual studio 2013, dot net framework 4.5
Please guide me to solve this issue. Thanks in advance.
Upvotes: 2
Views: 8917
Reputation: 98
Make sure all the files related to RDLC are there in the published files. If it is not there copy and paste it from Project file
Upvotes: 4
Reputation: 1
.rdlc
folder to bin
folder in the project directory. Hope it'll solve your issue.
Best-
Upvotes: 3
Reputation: 537
I'm using a view in Oracle DB to produce the report. That view is not working properly. We just dropped and re-created the view and it is working fine. Thanks for all the responses.
Upvotes: 0