locked
Access WCF OData service (hosted in IIS) from the same server causes authorization failure RRS feed

  • General discussion

  • Just wanted to put this out there so that others can benefit. 

    I have a WCF OData services that's hosted by IIS. The client for this service is hosted on the same server. When the client attempts to connect to the service via a host header (http://myservice.org.com/myservice.sv), the request returns authorization fails. When the client attempts to connect to the service not using a host header (http://server:port/myservice.svc), the request succeeds. When access the service via a host header from my dev machine, it succeeds.

    After finding the solution, it seems like you would just know why, but...

    Disable the loopback check:

    You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version

    Friday, January 18, 2013 9:53 PM

All replies

  • Hi J.pv,

    Welcome to the MSDN forum.

    I am trying to involve a senior expert into your thread. Please wait for the response. Sorry for any inconvenience.

    Have a nice day.


    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, January 22, 2013 7:41 AM