简体   繁体   English

共享主机上的Report Viewer配置错误

[英]Report Viewer Configuration Error on Shared Hosting

I have developed ASP.NET Application which requires ReportViewer for functionality. 我已经开发了需要ReportViewer功能的ASP.NET应用程序。 My Site is working perfectly well on localhost. 我的网站在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. 共享主机提供商要求我将ReportViewer版本从11升级到12,并且在本地主机上运行良好。 But on shared hosting space I am getting below error: ReportViewer Configuration Error 但是在共享主机空间上,我得到以下错误: ReportViewer配置错误

The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. 报表查看器Web控件HTTP处理程序尚未在应用程序的web.config文件中注册。 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.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 提前致谢

Issue was resolved finally! 问题终于解决了!

I changed the IIS Application Pool from Integrated to Classic . 我将IIS应用程序池从“集成”更改为“ 经典” It's working perfectly well now! 现在运作良好!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM