Click here to Skip to main content
15,896,522 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working on visual studio 2012 asp.net c# and I am using the Report Viewer control to display my reports.

It'S Working in the local excellently but they do not work on browsers not get error. I tried using Report Versions 10,11 and 12 and i experienced the same problem regardless. Please find in the code defined in the attached file config It also Upload the libraries to a folder Bin

CSS
<pre lang="xml">&lt;rsweb:ReportViewer ID=&quot;ReportViewer1&quot; runat=&quot;server&quot; AsyncRendering = &quot;false&quot; ShowParameterPrompts=&quot;True&quot; Width=&quot;770px&quot; &gt;
                            &lt;/rsweb:ReportViewer&gt;



 &lt;httpHandlers&gt;
        &lt;add path=&quot;Reserved.ReportViewerWebControl.axd&quot; verb=&quot;*&quot; type=&quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91&quot; validate=&quot;false&quot; /&gt;
    &lt;/httpHandlers&gt;

    &lt;assemblies&gt;

        &lt;add assembly=&quot;Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91&quot; /&gt;
        &lt;add assembly=&quot;Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91&quot; /&gt;
    &lt;/assemblies&gt;

    &lt;buildProviders&gt;
        &lt;add extension=&quot;.rdlc&quot; type=&quot;Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91&quot; /&gt;
    &lt;/buildProviders&gt;

    &lt;system.webServer&gt;
        &lt;validation validateIntegratedModeConfiguration=&quot;false&quot; /&gt;
        &lt;handlers&gt;
            &lt;add name=&quot;ReportViewerWebControlHandler&quot; preCondition=&quot;integratedMode&quot; verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type=&quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91&quot; /&gt;
        &lt;/handlers&gt;
    &lt;/system.webServer&gt;
</pre>
Posted
Comments
[no name] 20-Oct-15 6:16am    
The problem is still not resolved!
Do any of you have a solution to this problem
I able to view reports on my local IIS server, but when I upload my project to a remote server I can not view my reports any more.
Anjali0904 23-Oct-15 12:52pm    
Are you viewing SSRS reports in the viewer??

1 solution

What do you mean by Local and Browser.

Are you referring Local meaning running from VisualStudio and Browser when you are deploying to Server/Local IIS?

If that is the case then make sure that RDLC file is accessible from IISServer.

Also check on server whether below libraries (or their dependencies) are there in bin
Microsoft.ReportViewer.WebForms
Microsoft.ReportViewer.ProcessingObjectModel
Microsoft.ReportViewer.Common

Thanks
Rushi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900