none
401.2 trying to access a WCF service hosted on IIS 8 RRS feed

  • Question

  • Moving from IIS 6 to IIS 8, finally.  I've published my WCF Service to the new environment and I get this error trying to connect to it.

    Under IIS 8 and the Basic Settings popup when I click Test Settings it worked successfully. 


    C.Kowitz

    Thursday, October 31, 2013 2:45 PM

Answers

  • http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8feeaa51-c634-4de3-bfdc-e922d195a45e.mspx?mfr=true

    <copied>

    Typically, HTTP 401.1 and 401.2 errors are encountered when the authentication process fails in some way — either because the mechanism that IIS used to obtain the credentials has failed or because the credentials themselves are invalid. This is an important distinction that is a critical to the problem isolation process. These errors tell you that, before performing any other function, IIS has failed to authenticate the user.

    <end>

    You have an authentication issue with credentials that the error message is clearly telling you.

    You can enable auditing on Windows 8 NT based O/S for login on success or failure that will be displayed is the System Event log that will expose the credentials that were be presented to that Web service on a login failure on 401.x login error code.

    You should lookup the definition for IIS Anonymous login, which is failing in your case.  

    Sunday, November 3, 2013 4:18 AM

All replies

  • Hi Kowitz,

    It seems that WCF services do not run on IIS 8 with the default configuration, some additional steps are needed: add a new MIME type; add a new Managed HTTP Handler. You can refer a blog at http://gyorgybalassy.wordpress.com/2012/09/24/publishing-a-wcf-service-on-iis8/ and http://3water.wordpress.com/2012/09/05/host-wcf-in-iis8-windows-server-2012/

    Hope this helps.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, November 1, 2013 5:18 AM
    Moderator
  • I saw both of those will searching for a resolution and performed the requested changes, but I still get the error.

    Thanks.


    C.Kowitz

    Friday, November 1, 2013 1:57 PM
  • http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8feeaa51-c634-4de3-bfdc-e922d195a45e.mspx?mfr=true

    <copied>

    Typically, HTTP 401.1 and 401.2 errors are encountered when the authentication process fails in some way — either because the mechanism that IIS used to obtain the credentials has failed or because the credentials themselves are invalid. This is an important distinction that is a critical to the problem isolation process. These errors tell you that, before performing any other function, IIS has failed to authenticate the user.

    <end>

    You have an authentication issue with credentials that the error message is clearly telling you.

    You can enable auditing on Windows 8 NT based O/S for login on success or failure that will be displayed is the System Event log that will expose the credentials that were be presented to that Web service on a login failure on 401.x login error code.

    You should lookup the definition for IIS Anonymous login, which is failing in your case.  

    Sunday, November 3, 2013 4:18 AM
  • http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8feeaa51-c634-4de3-bfdc-e922d195a45e.mspx?mfr=true

    <copied>

    Typically, HTTP 401.1 and 401.2 errors are encountered when the authentication process fails in some way — either because the mechanism that IIS used to obtain the credentials has failed or because the credentials themselves are invalid. This is an important distinction that is a critical to the problem isolation process. These errors tell you that, before performing any other function, IIS has failed to authenticate the user.

    <end>

    You have an authentication issue with credentials that the error message is clearly telling you.

    You can enable auditing on Windows 8 NT based O/S for login on success or failure that will be displayed is the System Event log that will expose the credentials that were be presented to that Web service on a login failure on 401.x login error code.

    You should lookup the definition for IIS Anonymous login, which is failing in your case.  

    The link provided is for IIS6 is there one for IIS8? Also how do you enable auditing on Server 2012?

    Thanks.


    C.Kowitz

    Tuesday, November 12, 2013 12:18 PM
  • <copied>

    The link provided is for IIS6 is there one for IIS8? Also how do you enable auditing on Server 2012?

    <end>

    IIS Anonymous login is pretty simple to setup. I am sure you can find articles using Bing and Google for IIS8. It's not that big of a deal.

    As far as Windows Auditing, it's just about the same from Windows XP to Win 2012 server

    http://blogs.technet.com/b/askds/archive/2007/10/19/introducing-auditing-changes-in-windows-2008.aspx

    Tuesday, November 12, 2013 6:17 PM