IIS Authentication Error : 401 2 5 0 RRS feed

  • Question

  • User212761128 posted

     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.

    Wednesday, July 16, 2014 8:38 AM


  • User-166373564 posted

    Hi krisz,

    For this 401 issue, perhaps they are possible causes below.

    Cause 1:

    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.

    Cause 2:

    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. http://forums.iis.net/1041.aspx/1?General 



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 20, 2014 3:39 AM

All replies