0

我们正在尝试将SQL Reporting Services添加到.Net 2.0 Web应用程序。 SRS已安装在服务器上的成功,但我们得到一个错误,当我们试图加载报表或访问报表管理:报告服务和Web应用程序(使用HTTPHandler)

Server Error in '/Reports' Application. 
-------------------------------------------------------------------------------- 

Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'netGmrc' or one of its dependencies. The system cannot find the file specified. 

错误正在从线即将在web.config中,其中一个HttpHandler称为Upload.axc正在被添加到Web应用程序中。下面列出了整个httpHandler部分。

<httpHandlers> 
     <add verb="*" path="Upload.axd" type="netGmrc.Upload, netGmrc"/> 
     <remove verb="*" path="*.asmx"/> 
     <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 
     <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 
     <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> 
    </httpHandlers> 

当我们从Web.Config中移除Upload.axd处理程序时,SRS中的所有内容都可以正常工作。使用此httphandler使Reporting Services与Web应用程序一起工作的正确方法是什么?

回答

0

我发现了一个似乎能够工作的解决方案,即更改应用程序的web.config,以使设置不会被Reporting Services继承。防止继承似乎允许Web应用程序和Reporting Services正常运行。

<location path="." inheritInChildApplications="false"> 
    <system.web> 
    ... 
    </system.web> 
</location> 

这来自Stack Overflow question #1049573

相关问题