Last post Jul 20, 2014 03:39 AM by Angie xu - MSFT
Jul 16, 2014 08:38 AM|krisz23|LINK
IIS 401 2 5 error : A website(server -A) tries to make a request to webservice(Server-B) and gets unauthentication error. Both website and webservice are configured to run under an app pool running using same service account - which is a domain account.
Both servers are on the same domain. NTLM,Negotiate configured for webservice server.Kernel mode authentication is enabled on webservice server. Website Server - IIS 6.0, Webservice server - IIS 7.5. IIS 6 Metabase Compatibility settings is turned on Webservice
server. If you log in remotely to the website server and try accessing the webservice, it is accessible. In case you try to access the webservice from the website using the ip address of the webservice, it still gives the same error.
The webservice is called in following manner (sample code) :
Service1 obj = new Service1(); obj.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; var result = obj.HelloWorld();
Same environment is present in different set of servers for UAT, works absolutely fine. No issue. Anyone having any solution,please guide what else needs to be done or verified.
Jul 16, 2014 08:50 AM|GiridharSai Chimata|LINK
these may help you
Jul 20, 2014 03:39 AM|Angie xu - MSFT|LINK
For this 401 issue, perhaps they are possible causes below.
The Web application is configured to use Integrated Windows authentication. However, the Windows Authentication feature is not turned on. Or, the Integrated Windows authentication native module section of the ApplicationHost.config file or of the Web.config
file is not valid.
The Web application is not configured to use an authentication method.
Further information: http://support.microsoft.com/kb/942043
In addition, if you have any concern about IIS, you could also considering getting help from IIS forum.