【发布时间】:2012-06-14 17:32:25
【问题描述】:
我有一个在 Windows 7 机器上运行的 SQL Server 2008 R2 报表服务器以及一个 ASP.NET 应用程序。 ASP.NET 应用程序向报表服务器发出请求以显示报表列表、呈现报表等。我的 ASP.NET 应用程序成功获取报表列表,但是当它尝试呈现报表时出现以下错误:
The permissions granted to user 'IIS APPPOOL\DefaultAppPool' are insufficient for performing this operation. (rsAccessDenied)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.Reporting.WebForms.ReportServerException: The permissions granted to user 'IIS APPPOOL\DefaultAppPool' are insufficient for performing this operation. (rsAccessDenied)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ReportServerException: The permissions granted to user 'IIS APPPOOL\DefaultAppPool' are insufficient for performing this operation. (rsAccessDenied)]
Microsoft.Reporting.WebForms.ServerReportSoapProxy.OnSoapException(SoapException e) +89
Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.ProxyMethodInvocation.Execute(RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod) +404
Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) +180
Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession() +79
Microsoft.Reporting.WebForms.ServerReport.GetParameters() +54
注意:相同的代码库在运行 Windows 7 和 Windows Server 2008 的多台机器上运行良好。我一直在尝试基于网络搜索的许多不同的东西,但还没有找到解决方案。任何对此的见解将不胜感激。
【问题讨论】:
-
您是否确保 APPPool 标识“IIS APPPOOL\DefaultAppPool”有权访问报表服务器。它至少应该有浏览器访问权限
-
这对我有帮助。如果您不介意,我会将其作为答案提出,以便可见。
-
为了快速临时更改,我能够做到这一点。我在 Visual Studio 中调试时看到了这个错误。我注意到我的项目属性 > web > 服务器,选择了“使用本地 IIS Wev 服务器”。我通常这样做是为了复制生产环境。切换到“使用 Visual Studio 开发服务器”允许我调试报告。
标签: asp.net iis reporting-services reporting