Report Viewer Configuration error - In View Source of webpage

后端 未结 8 1192
你的背包
你的背包 2021-01-04 05:27

I found the following error message when I checked View source of the web page , but the web page works just fine. Our Test lead found the error while performing Assertion t

相关标签:
8条回答
  • 2021-01-04 06:00

    The following was my solution:

    <system.web>
      <httpHandlers>
        <add verb=" * "  path="Reserved.ReportViewerWebControl.axd" 
             type="Microsoft.Reporting.WebForms.HttpHandler,
                   Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral,
                   PublicKeyToken=b03f5f7f11d50a3a" />
      </httpHandlers>
    </system.web>
    <system.webServer>
      <handlers>
        <add name="ReportViewerWebControlHandler" preCondition="integratedMode"
             verb="*" path="Reserved.ReportViewerWebControl.axd" 
             type="Microsoft.Reporting.WebForms.HttpHandler, 
                   Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral,
                   PublicKeyToken=b03f5f7f11d50a3a"/>
      </handlers>
    </system.webServer>
    
    0 讨论(0)
  • 2021-01-04 06:01

    For IIS 7 use the following code in your web.config

          <system.webServer>
                <handlers>
                       <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
                </handlers>
          </system.webServer>
    
    0 讨论(0)
  • 2021-01-04 06:08

    After changing the web.config file depending on IIS version, try add this code part:

      if(!IsPostBack){
            // Here codes about ReportViewer1 
        }
    

    You can check this similar problem.

    0 讨论(0)
  • 2021-01-04 06:09

    I was also facing same problem of report viewer not displaying. After setting display property from browser i got my error as "Report Viewer Configuration error".

    I have found that for some parameter i am sending incorrect values i.e. "string .empty". I changed my code to send some value or null to parameter. Now my report is displaying properly. I have resolved my issue by sending correct report parameter values to report. Don't miss any parameter to assign proper values or null.

    0 讨论(0)
  • 2021-01-04 06:12

    This is how my declaration of report viewer control looks like in web.config. Make you sure you have something similar in there. And add if you don't have it. The version of the control might not be the same tho.

    <configuration>
        ...
        </system.web>
            ...
            <httpHandlers>
                ...
                <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
                ...
            </httpHandlers>
            ...
        </system.web>
        ...
    </configuration>
    
    0 讨论(0)
  • 2021-01-04 06:12

    The following code are as follows

    <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
    </handlers>
    

    0 讨论(0)
提交回复
热议问题