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

相關問題