Visual studio 2008 报表查看器获取未经授权的报表

Visual studio 2008 报表查看器获取未经授权的报表,visual-studio-2008,iis-7,ssrs-2008,user-permissions,reportviewer2008,Visual Studio 2008,Iis 7,Ssrs 2008,User Permissions,Reportviewer2008,简言之,问题是当我试图查看嵌入在报表查看器中的报表时,以下stacktrace出现了401未经授权的错误 at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(Str

简言之,问题是当我试图查看嵌入在报表查看器中的报表时,以下stacktrace出现了401未经授权的错误

   at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods()
   at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname)
   at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)
   at Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo()
   at Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters)
   at ReportingObject.RenderReport(ReportViewer reportViewer, ReportParameter[] param) in C:\Projects\RBDCReportMapIntelligence\RBDCReportMapIntelligence\ReportingObject.cs:line 41
   at Report.btnViewReport_Click(Object sender, EventArgs e) in c:\Projects\RBDCReportMapIntelligence\RBDCReportMapIntelligence\Report.aspx.cs:line 126
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
详情如下:

  • 我的机器(运行Windows Vista)同时运行IIS和reporting services
  • 我是我机器上的本地管理员,但不是系统管理员
  • 根据post,我已经配置了reporting services,让自己能够访问(这似乎是一个非常常见的解决方案)。但即使这样做了,我也无法在不运行IE作为管理员的情况下看到报表管理器
  • IIS只为所有站点启用了DefaultAppPool的匿名身份验证,我不确定应该和不应该启用什么。DefaultAppPool是以NetworkService设置为标识的集成托管管道模式
  • 我不确定VS上是否有需要更改的设置
  • 我有一个实现IReportServerCredentials接口的类(根据网络上的许多示例),用于连接到报表服务器
  • 我试着在网上和stackoverflow上查看,我也尝试了很多解决方案,但似乎没有任何帮助

    如果有人能帮忙就好了。如果我需要为问题添加更多细节,请告诉我。

    我是通过以下方式完成这项工作的:

  • 关闭UAC,它现在让我可以查看报表管理器,而无需以管理员身份运行IE
  • 创建了在网络服务下运行的新应用程序池,并在该应用程序池下运行该应用程序
  • 在网络服务帐户下运行Reporting Services
  • 希望它能帮助别人