401 1 5 - web service refusing access

Discussion in 'ASP .Net Web Services' started by pkermeen@gam.com, Nov 15, 2006.

  1. Guest

    Hi,
    I'm having trouble getting a .net 1.1 web site calling a .net 2.0 web
    service to impersonate the calling client.

    I'm using
    WebServiceProxy.Credentials =
    System.Net.CredentialCache.DefaultCredentials

    And the web sites are both using integrated windows authentication,
    with Anonymous access switched off.

    Both web server and web service have

    <authentication mode="Windows" />
    <identity impersonate="true"/>

    Set in the web.config

    Both sites are using App pools that use the IWAM account, who is
    allowed to do impersonation.

    The web service log shows:
    2006-11-15 10:49:20 W3SVC1169898807 172.16.45.169 POST /Service.asmx -
    82 - 172.16.40.254
    Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.2300)
    401 2 2148074254
    2006-11-15 10:49:20 W3SVC1169898807 172.16.45.169 POST /Service.asmx -
    82 - 172.16.40.254
    Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.2300)
    401 1 0
    2006-11-15 10:49:20 W3SVC1169898807 172.16.45.169 POST /Service.asmx -
    82 - 172.16.40.254
    Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.2300)
    401 1 5
    when the call fails. The 401 5 is an ISAPI/ CGI authorisation issue i
    think, so it looks like the web site is not passing the appropriate id
    when challenged.

    The web server is showing my id when i ask it:
    _userID = context.User.Identity.Name; so it appears to be using
    impersonation....

    Any ideas?
     
    , Nov 15, 2006
    #1
    1. Advertising

  2. Have you tried using this?
    WebServiceProxy.PreAuthenticate = true;



    "" wrote:

    > Hi,
    > I'm having trouble getting a .net 1.1 web site calling a .net 2.0 web
    > service to impersonate the calling client.
    >
    > I'm using
    > WebServiceProxy.Credentials =
    > System.Net.CredentialCache.DefaultCredentials
    >
    > And the web sites are both using integrated windows authentication,
    > with Anonymous access switched off.
    >
    > Both web server and web service have
    >
    > <authentication mode="Windows" />
    > <identity impersonate="true"/>
    >
    > Set in the web.config
    >
    > Both sites are using App pools that use the IWAM account, who is
    > allowed to do impersonation.
    >
    > The web service log shows:
    > 2006-11-15 10:49:20 W3SVC1169898807 172.16.45.169 POST /Service.asmx -
    > 82 - 172.16.40.254
    > Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.2300)
    > 401 2 2148074254
    > 2006-11-15 10:49:20 W3SVC1169898807 172.16.45.169 POST /Service.asmx -
    > 82 - 172.16.40.254
    > Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.2300)
    > 401 1 0
    > 2006-11-15 10:49:20 W3SVC1169898807 172.16.45.169 POST /Service.asmx -
    > 82 - 172.16.40.254
    > Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.2300)
    > 401 1 5
    > when the call fails. The 401 5 is an ISAPI/ CGI authorisation issue i
    > think, so it looks like the web site is not passing the appropriate id
    > when challenged.
    >
    > The web server is showing my id when i ask it:
    > _userID = context.User.Identity.Name; so it appears to be using
    > impersonation....
    >
    > Any ideas?
    >
    >
     
    Catalin Tomescu, Dec 7, 2006
    #2
    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?Sm9obiBDcm93bGV5?=
    Replies:
    3
    Views:
    3,161
    vpdsouza
    Feb 1, 2006
  2. Tarun Mistry

    Why are my validators refusing to work?

    Tarun Mistry, Dec 12, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    272
    bruce barker
    Dec 12, 2006
  3. Steve Sobol
    Replies:
    6
    Views:
    1,495
    Martin Gregorie
    Nov 12, 2007
  4. A L
    Replies:
    8
    Views:
    344
    Öö Tiib
    Jun 16, 2010
  5. Alex Washtell via .NET 247

    Web Service + Anon Access, but getting 401 Access Denied Error

    Alex Washtell via .NET 247, Apr 5, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    202
    Mauro Ottaviani [MSFT]
    Apr 5, 2005
Loading...

Share This Page