我的应用程序已 Asp.Net MVC3编码C#,我有一个 SSRS 解决方案SQL Server Business Intelligence Developement Studio,Visual Studio 2008我正在通过我的Asp.Net MVC3应用程序调用 SSRS 报告。几天前我的应用程序运行良好,但突然出现如下错误:
我的错误:
The request failed with HTTP status 401: Unauthorized.
我的尝试
我的 SSRS 报告部署在我的
local server. 我在我的 SSRS 报告解决方案的数据源中正确设置了我的凭据。我试图在我的 web.config 中添加标签
<identity impersonate="true" userName="Domain\username" password="Password" />我尝试添加
IReportServerCredentials reportCredentials = new ReportServerCredentials("MyUserName", "MyPassword", "ServerName");我将 Visual Studio 作为
'Run as Administrator'.我尝试了此链接中提到的解决方案Creating a key using RegEdit
更新 我也尝试了以下解决方案,但结果相同:SSRS 中的未经授权的错误
上述解决方案都不起作用,但是当我在其他机器上运行相同的解决方案时,解决方案运行良好并且没有显示错误。只有当我从我的机器上运行解决方案时,我才会收到错误The request failed with HTTP status 401: Unauthorized.