共享主机上的报告查看器配置错误

时间:2021-02-24 08:20:38

I have developed ASP.NET Application which requires ReportViewer for functionality. My Site is working perfectly well on localhost. I was asked by my shared hosting provider to upgrade the ReportViewer version from 11 to 12 which I did and it is working fine on local host. But on shared hosting space I am getting below error: ReportViewer Configuration Error

我开发了ASP.NET应用程序,它需要ReportViewer来实现功能。我的网站在localhost上运行得非常好。我的共享托管服务提供商要求我将ReportViewer版本从11升级到12,我做了,它在本地主机上工作正常。但在共享主机空间我得到以下错误:ReportViewer配置错误

The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add to the system.web/httpHandlers section of the web.config file, or add to the system.webServer/handlers section for Internet Information Services 7 or later.

报表查看器Web控件HTTP处理程序尚未在应用程序的web.config文件中注册。添加到web.config文件的system.web / httpHandlers部分,或添加到Internet Information Services 7或更高版本的system.webServer / handlers部分。

My Web.Config file

我的Web.Config文件

<configuration>
  <system.web>
    <customErrors mode="Off"/>
    <httpHandlers>
      <!--<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=000000000000" validate="false"/>-->
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=000000000000" validate="false"/>   

      </httpHandlers>
    <compilation targetFramework="4.5">
      <assemblies>
        <add assembly="Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=000000000000"/>
        <add assembly="Microsoft.ReportViewer.ProcessingObjectModel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=000000000000"/>
        <add assembly="Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=000000000000"/>

      </assemblies>
      <buildProviders>
        <!--<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=000000000000"/>-->
      <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=000000000000"/>
      </buildProviders>
    </compilation>
    <httpRuntime targetFramework="4.5"/>
    <!--<sessionState timeout="1" />-->
    <authentication mode="Forms">
      <forms loginUrl="login.aspx" timeout="40" slidingExpiration="true"/>
    </authentication>
    <!--<sessionState timeout="20"></sessionState>-->
  </system.web>
  <!--<authentication mode="Forms">
      <forms loginUrl="CompanyMaster.aspx" />
    </authentication>-->

  <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=000000000000"/>-->
    <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=000000000000"/>
    </handlers>
    <!--<defaultDocument>
    <files>
      <clear />
      <add value="Login.aspx" />
    </files>
  </defaultDocument>-->
  </system.webServer>
  <appSettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
  </appSettings>
</configuration>

I have also added all the 3 DLL files in BIN Folder

我还在BIN文件夹中添加了所有3个DLL文件

Can anyone please guide me where I am wrong?

任何人都可以指导我在哪里错了吗?

Thanks in advance

提前致谢

1 个解决方案

#1


0  

Issue was resolved finally!

问题终于解决了!

I changed the IIS Application Pool from Integrated to Classic. It's working perfectly well now!

我将IIS应用程序池从Integrated更改为Classic。它现在运作得很好!

#1


0  

Issue was resolved finally!

问题终于解决了!

I changed the IIS Application Pool from Integrated to Classic. It's working perfectly well now!

我将IIS应用程序池从Integrated更改为Classic。它现在运作得很好!