Report Viewer Configuration error - In View Source of webpage

后端 未结 8 1193
你的背包
你的背包 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:14

    I just checked in an app that includes a ReportViewer control and which has been in production without any issues for almost a year, and the same content is found in the HTML content.

    So given the fact that this div is not displayed (CSS attribute display:none), one can guess that it's an error message which is present just for ease of display should the error actually occur. If the error involves something client-side, then it's much easier to implement it that way: all the client-side script has to do to display the message is change the style attribute--there's no need to manipulate the DOM to append the error message, and no need to get the localized error message in the adequate language in javascript (given the localization support of ReportViewer through language packs, there's a different version of this error message per language--much easier to handle this on the ASP.NET side alongside all the other localized content than in the browser in javascript). Yes, I am doing psychology here! :)

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

    To be safe add configuration of IIS6 and IIS7.

    IIS6:

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

    IIS7:

    <system.webServer>
       <handlers>
          <add 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)
提交回复
热议问题