0

I am have been fighting this error in IIS 7.5 for sometime now, and no solution I find seems to help. As I understand it, a 401.2 error means that the browser and the site in IIS are using two different types of authentication.

I have two Web Services hosted in IIS 7.5. Web Service A makes a call to Web Service B. This is where the 401.2 error happens. Both Web Services have Windows Authentication Enabled with 401 Challenge. The only enabled provider on each is NTLM. The Web.Config for both services is set up to have

<authentication mode="Windows" />

Here is what the call from Web Service A to WebService B looks like:

   WebServiceB.Credentials = new System.Net.NetworkCredential("ValidUser", "ValidPW", "ValidDomain");
   var output = WebServiceB.DoSomething(input); //Throws 401 WebException

As far as I can tell, both the Web Services and IIS sites should be using Windows Authentication, and nothing but Windows Authentication, yet I continue to get these 401.2 errors. Why?

Dave
  • 2,473
  • 2
  • 30
  • 55
  • Are you using NTLM through a proxy? Perhaps try the solution documented here - http://support.microsoft.com/kb/253667 – clamchoda Nov 01 '13 at 18:14

2 Answers2

0

I guess it is related to double-hop issue. Pleae try with delegation of creditential to second call.

May be the following link help you. Please have a look at it.

How can I fix the Kerberos double-hop issue?

Community
  • 1
  • 1
0

this turned out to be an issue with the way the user was configured with a third party software. Thank you for all of your responses.

Dave
  • 2,473
  • 2
  • 30
  • 55