Impersonation Problem RRS feed

  • Question

  • I have a web page that is written in ASP.net. It is using impersonation to access a database on another server using the logged in users identity.

    The page works on my dev environment and on a virtual machine that has Server 2003 on it, which is the same as the sever that the page is to be deployed on.

    When I try to deploy on the web server it always comes back saying that Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. The page is configured in the web config to Impersonate, anonymous access has been disabled for the application in IIS.

    I have tried setting up an Application pool specifically for the application and changed the Identity to Local System to make sure that the account is running under has enough privileges to do impersonation but still it tries to login as ANONYMOUS LOGON

    Hope someone can help.

    Wednesday, September 30, 2009 2:14 AM


All replies

  • Please read the announcement above, "Where to Post ASP.NET and IIS Questions".
    John Saunders
    WCF is Web Services. They are not two separate things.
    Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
    Use File->New Project to create Web Service Projects
    Wednesday, September 30, 2009 4:49 AM
  • You might have already these entries in web.config.

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

    Please refer to below link that helped us - http://msdn.microsoft.com/en-us/library/ms998351.aspx

    And when are you gettting error - is it on connecting asp.net application or from asp.net to sql server instance.
    Wednesday, September 30, 2009 5:37 AM