authentication mode windows : web vs web service application

Discussion in 'ASP .Net' started by donet programmer, Jan 18, 2008.

  1. I have created web service application in .net 2.0 with IIS set to
    disable anonymous access and use windows integrated authentication. My
    web.config is set as below

    <authentication mode="Windows" />
    <authorization>
    <deny users="?"/>
    </authorization>

    When I try to access this web service from my domain account, I can
    successfully call web methods. Whereas through my local account, I get
    an error saying access denied for user (null).

    I thought if I create a web application with same settings I will get
    same behavior. But I was wrong when I use my local account I can still
    access webforms and LOGON_USER server variable is set to my local
    machine name\username.

    I am really confused, why does this setting work for web services but
    not for web applications. Any ideas would be appreciated.
    Thank you.
     
    donet programmer, Jan 18, 2008
    #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. John J Lee
    Replies:
    3
    Views:
    550
    bruno at modulix
    Dec 1, 2005
  2. Edward Loper
    Replies:
    0
    Views:
    523
    Edward Loper
    Aug 7, 2007
  3. John J Lee
    Replies:
    0
    Views:
    558
    John J Lee
    Aug 7, 2007
  4. Replies:
    1
    Views:
    252
    Joe Kaplan \(MVP - ADSI\)
    Jun 14, 2006
  5. Replies:
    3
    Views:
    389
Loading...

Share This Page