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.
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.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
1 Post
IIS Authentication Error : 401 2 5 0
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.
401 asp.net iis
Member
350 Points
112 Posts
Re: IIS Authentication Error : 401 2 5 0
Jul 16, 2014 08:50 AM|GiridharSai Chimata|LINK
these may help you
http://fluviatilis.blogspot.in/2013/02/iis-401-authentication-error.html
401 asp.net iis
Member
350 Points
112 Posts
Re: IIS Authentication Error : 401 2 5 0
Jul 16, 2014 08:50 AM|GiridharSai Chimata|LINK
these may help you
http://fluviatilis.blogspot.in/2013/02/iis-401-authentication-error.html
http://forums.iis.net/t/1183340.aspx?IIS+7+0+401+2+5+error+message+
401 asp.net iis
All-Star
32817 Points
3815 Posts
Re: IIS Authentication Error : 401 2 5 0
Jul 20, 2014 03:39 AM|Angie xu - MSFT|LINK
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
Regards
Angie
401 asp.net iis
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.