ASP.NET ReportViewer works in development; deployment is empty

I have an ASP.NET web application that uses ReportViewer to display local reports. Everything works fine on my development machine (XP Pro, Visual Studio 2008). When I deploy the application to a production server (Windows Server 2008, IIS 7), the site works very well, except for the report viewer. When I create a report, the report viewer remains empty.

I wrote debugging code to make sure the records are from the database, and they are. An error has occurred, but records are not displayed in the report viewer. In addition, images that are usually displayed in the menu bar of the ReportViewer control (export button, print button, forward and back buttons, etc.) are also not loaded.

I ran ReportViewer.exe on the server to install the appropriate files, and I confirmed that they are in the GAC machine.

Can someone suggest a way to debug this ... it would be easier if an error were generated (I can't believe I just said that)?

+3
source share
1 answer

, , web.config. , system.webServer/handlers, IIS7. IIS7 system.web/httpHandlers, , IIS 5.1 (XP), 7.

, :

system.web/:

  <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </buildProviders>

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" />

system.webServer/:

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

Source: https://habr.com/ru/post/1767231/


All Articles