Hi AG,
I've done some test locally and cannot reproduce the issue on my side. I
tried both a domain user account and a local user account (on the report
server). To make sure we're using the similar configuration and code,
here's my relevant code and configuration:
1) ServerA: installed SQL Server 2005 with Reporting Service; all are
configured correctly to make sure visiting
http://ServerA/ReportServer/
success
2) WorkstationB: developing system, Vista.
3) ServerA and WorkstationB are in the same domain.
4) Setup a local user account on ServerA and give this account "Browse"
permission on the server.
5) Used following code to pass the user account:
public class MyCredentials : IReportServerCredentials
{
private string m_user, m_pwd, m_domain;
public MyCredentials(string user, string pwd, string domain)
{
m_user = user;
m_pwd = pwd;
m_domain = domain;
}
#region IReportServerCredentials Members
public bool GetFormsCredentials(out System.Net.Cookie authCookie,
out string userName, out string password, out string authority)
{
authCookie = null;
userName = password = authority = null;
return false;
}
public System.Security.Principal.WindowsIdentity ImpersonationUser
{
get { return null; }
}
public System.Net.ICredentials NetworkCredentials
{
get
{
return new NetworkCredential(m_user, m_pwd, m_domain);
}
}
#endregion
}
6) Published the website to ServerA and verified it works correctly.
7) Repeat step 4) but with a domain user account.
-----------
Now would you please help me check following points so that we could
further troubleshoot this issue on your side:
* Check the event log, "Security" part, see the relevant "Failure Audit"
and post some of the records here.
* On the server or your workstation, right-click on IE shortcut and select
"Run As", and use the account that you're passing to the report server to
run IE, then visit
http://yourserver/ReportServer to see if it works
* Check kb
http://support.microsoft.com/kb/907273, especially this kb:
http://support.microsoft.com/kb/896861 to see if the registry fix (to
disable loopback check) helps or not. In my case, I don't need to do this
fix but yours scenario may vary.
* Check your IIS log on the server to see if there's any interesting logs
when the 401 error occurs.
By the way, I'm using the same web site on IIS server as the my asp.net
web
application and the report server's web service, but running in two
different Application Pool, both application pools are using NETWORK
SERVICE account.
Regards,
Walter Wang (
[email protected], remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.