We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

WebException: The request failed with HTTP status 401: Unauthorized. from webservice [Answered]RSS

2 replies

Last post Feb 20, 2008 03:04 PM by euacar

  • WebException: The request failed with HTTP status 401: Unauthorized. from webservice

    Feb 20, 2008 02:28 PM|euacar|LINK

    I have two IIS installations A and B.

    Web page is installed in DefaultAppPool of A and B

    In A web page sees the error from web service. WebException: The request failed with HTTP status 401: Unauthorized.]
       System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +551137
       System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +204

    In B no errors at all.

    In A, I can do a right click and browse w/o any errors.

    How can I compare A and B? I check the permissions and properties and they look the same.

     

    authentication Authentification windows authentication ASPNET ASP.NET 2.0

  • Re: WebException: The request failed with HTTP status 401: Unauthorized. from webservice

    Feb 20, 2008 02:39 PM|Luciano.cl|LINK

  • Re: WebException: The request failed with HTTP status 401: Unauthorized. from webservice

    Feb 20, 2008 03:04 PM|euacar|LINK

    thx for the reply...

    I  already have the following in the code.

    myWebService.Credentials = System.Net.CredentialCache.DefaultCredentials;

     

    any other suggestion?