Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have the web application that runs under the account that has delegation rights. The app calls the reporting service on the another server and passes the user credentials by

ReportingService rs = new ReportingService();
rs.UseDefaultCredentials = true;
rs.PreAuthenticate = true;
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;

Everything is working fine in IIS 6.

However, exactly the same code throws the HTTP Error 401.1 – Unauthorized when it runs in IIS 7.5.

I believe this is double-hop issue (it works if I hard-coded the credentials). I checked all the IIS settings and do not see what may cause that.

There is no restriction on any IP addresses and the web server and the reporting servers are in the same forest. The site has the Full .Net Trust Level and no secure binding (HTTPS).

For site authentication I have ASP.Net Impersonation and Windows Authentication enabled. And for Windows Authentication, I have Enable Kernel-mode authentication and NTLM and Negotiate providers.

The most puzzled thing is that it is working in IIS 6, but not in IIS 7.5. So there is definitely something specific in IIS 7.5 that I am missing.

Could anyone help me with this problem? Any suggestions and help are greatly appreciated.

share
    
I've voted this as off-topic. Serverfault is a better place for questions like this. –  paulmorriss Dec 21 '11 at 10:02
    
This question was asked and answered on StackOverflow: stackoverflow.com/questions/1058636/… –  Stephen Ostermiller Nov 19 '13 at 16:29
comments disabled on deleted / locked posts

migration rejected from webapps.stackexchange.com Nov 19 '13 at 16:29

This question came from our site for power users of web applications. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by Stephen Ostermiller Nov 19 '13 at 16:29

  • This question does not appear to be about webmastering within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.