asp.net - 访问报表服务器时出现 AppPool 权限问题

标签 asp.net iis reporting-services reporting

我有一个在 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 的多台计算机上运行良好。我已经根据网络搜索尝试了许多不同的方法,但尚未找到解决方案。任何对此的见解将不胜感激。

最佳答案

终于明白了。我的 Reporting Services 配置为本地帐户,而我的 IIS 应用程序池配置为 ApplicationPoolIdentity。我将应用程序池更改为 LocalSystem 并修复了它。希望这些信息对其他人有用,因为我浪费了几个小时来弄清楚这一点。

关于asp.net - 访问报表服务器时出现 AppPool 权限问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10986419/

相关文章:

asp.net - Global_asax_BeginRequest - 此行如何出错?

c# - 如何在现有 Azure MVC ASP.NET Web 应用程序上启用 "host in the cloud"

javascript - 使用javascript动态创建标签并在服务器端获取该标签

c# - 如何防止未经身份验证的用户下载文件

.net - IIS 中的 .NET 代码出现堆栈溢出,但 Winforms 中没有

c# - 从 MS CRM 2011 插件上下文获取 SSRS URL

C# ASP.NET QueryString 解析器

asp.net - IIS7 : set "no-cache" for all aspx pages but not images/css/js

sql - SSRS : display a message conditionally if the report is empty

visual-studio-2010 - SSRS 无法识别自定义 DLL