ReportViewer错误 - 请求失败,HTTP状态为401:未经授权

时间:2012-10-08 15:44:07

标签: asp.net reporting-services reportviewer report-viewer2010

我正在使用Visual Studio 2010 SP1,.Net 4.0,SSRS 2008 R2,Windows XP Professional

以下是我在开发计算机上尝试使用Visual Studio 2010(调试模式)运行报表时出现的错误。

  

请求失败,HTTP状态为401:未经授权。

web.config有设置:

<authentication mode="Windows" />
<identity impersonate="true" />

我有:

  • WindowsImpersonationCredentials : IReportServerCredentials
  • 设置了一个班级
  • 在运行报告之前检查了ServerReport.ReportServerCredentials,它具有登录到计算机的用户ID,但是ServerReport.ReportServerCredentials。在运行报告之前,ImpersonateUser为空。
  • Web应用程序和SSRS位于同一台开发计算机上。
  • 在注册表中将DisableloopCheck更改为1 - 没有任何区别。

直接从报表管理器运行报表时报表正常。相同的代码在服务器上工作正常,但不是我的本地机器(调试模式)。

无法弄清楚幕后发生了什么。任何帮助都会非常感激。

0 个答案:

没有答案