【发布时间】:2009-11-30 18:02:50
【问题描述】:
我们正在尝试将 SQL Reporting Services 添加到 .Net 2.0 Web 应用程序。 SRS 已成功安装在服务器上,但当我们尝试加载报表或访问报表管理器时出现错误:
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 中的一行,其中将名为 Upload.axc 的 httpHandler 添加到 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 应用程序一起工作的正确方法是什么?
【问题讨论】:
标签: vb.net .net-2.0 reporting-services reportingservices-2005