Report Viewer Web Control Version 10 Gives Error Despite Set Up Correctly

后端 未结 3 1548
悲哀的现实
悲哀的现实 2021-02-05 23:07

Reports are deployed and working, verified in Report Manager.

My application is an MVC2 app with my report on its own aspx page. This page worked with version 8 of the

相关标签:
3条回答
  • 2021-02-05 23:22

    I thought its ReportViewer Rendering Issue on IIS7 I have manually mapped my reportviewer handle to IIS7 like this:

    •Open Internet Information Services (IIS) Manager and select your Web application.

    •Under IIS area, double-click on Handler Mappings icon.

    •At the Action pane on your right, click on Add Managed Handler.

    •At the Add Managed Handler dialog, enter the following:

    Request path: Reserved.ReportViewerWebControl.axd

    Type: Microsoft.Reporting.WebForms.HttpHandler

    Name: Reserved-ReportViewerWebControl-axd

    •Click OK.

    also changed by web config by adding


    Still mine's not working. I thought the above solution would help others.

    0 讨论(0)
  • 2021-02-05 23:27

    I have tries this by removing unwanted mvc assemblies from asp.net project. So the simple solution was to remove WebMatrix.*.dll from Bin folder in web project as that belongs to mvc framework.

    0 讨论(0)
  • 2021-02-05 23:28

    I found a quick and dirty workaround - to your web config add this:

    <location path="Reserved.ReportViewerWebControl.axd">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
    

    I saw in fiddler that for some reason when page requested Reserved.ReportViewerWebControl.axd instead of getting HTTP 200 response server would send 302 - moved to login.aspx?returnurl="Reserved.ReportViewerWebControl.axd. So allowing all users to the handler path solves the problem.

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