I have an ASP.NET website that uses the ReportViewer control. I'm using SQL server 2008 from reporting. The reporting services are on another machine on the local network and my asp.net web site is on my local system. This has been working fine for the same machine like when I access reports on network it works
我有一个使用ReportViewer控件的ASP.NET网站。我正在使用SQL server 2008报告。报告服务在本地网络上的另一台计算机上,我的asp.net网站在我的本地系统上。这对于同一台机器来说效果很好,就像我在网络*问报告一样
http:\\exampledomainname\reportsserver
But when I want to access my reports from local host, i.e http:\localhost\reports I get the following error :
但是当我想从本地主机访问我的报告时,即http:\ localhost \ reports我收到以下错误:
The request failed with HTTP status 401: Unauthorized.
Any other assistance would be appreciated.
任何其他援助将不胜感激。
1 个解决方案
#1
0
Set the impersonation for you web service in your web.config. This user must have permissions on the reporting server:
在web.config中为您的Web服务设置模拟。此用户必须具有报告服务器的权限:
<identity impersonate="true" />
#1
0
Set the impersonation for you web service in your web.config. This user must have permissions on the reporting server:
在web.config中为您的Web服务设置模拟。此用户必须具有报告服务器的权限:
<identity impersonate="true" />