Unauthorized Error Calling Web Service

Discussion in 'ASP .Net Web Services' started by Francois Guerin, Aug 20, 2004.

  1. I have an application calling a web service on a different machine. The
    application code runs under a local user account on the application server.
    The account (identical username/password) is created on the web service
    server. The web service uses Windows integrated security and ACLs are set on
    the web service to allow the remote application to use it.

    The problem is that everytime IIS' is recycled, I get an "unauthorized"
    error on the FIRST call to the web service. Subsequent calls are fine. There
    seems to be some type of retry process as I get the error first, and then the
    data. The IIS log sample below shows that, with two 401 error codes and one
    200 code. These three lines are ONE call to the web service from an
    application point of view. I actually have two different web services that
    behaves identically. Here's a sample of the IIS log:

    2004-08-17 09:59:35 XXX.XX.XX.XXX POST
    /AppCommonWebS/Classes/clsAPP_EmployeesWebS.asmx - 80 - XXX.XX.XX.XX
    Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.573) 401 2 2148074254
    2004-08-17 09:59:35 XXX.XX.XX.XXX POST
    /AppCommonWebS/Classes/clsAPP_EmployeesWebS.asmx - 80 - XXX.XX.XX.XX
    Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.573) 401 1 0
    2004-08-17 09:59:35 XXX.XX.XX.XXX POST
    /AppCommonWebS/Classes/clsAPP_EmployeesWebS.asmx - 80 PC12\APPUSER
    XXX.XX.XX.XX
    Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.573) 200 0 0

    --
    Thank you.
    Francois Guerin, Aug 20, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?S3lsZSBCYWxleQ==?=

    401 Unauthorized error in local web service

    =?Utf-8?B?S3lsZSBCYWxleQ==?=, Aug 3, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    1,338
    =?Utf-8?B?S3lsZSBCYWxleQ==?=
    Aug 3, 2005
  2. Replies:
    2
    Views:
    631
  3. aurelius
    Replies:
    0
    Views:
    124
    aurelius
    Sep 26, 2003
  4. raveesh khosa
    Replies:
    1
    Views:
    135
    Simon Hart
    Apr 22, 2006
  5. mike
    Replies:
    1
    Views:
    796
    Mr. Arnold
    Jun 6, 2009
Loading...

Share This Page