Results 1 to 2 of 2

Thread: ASP.NET, Sql Server and different accounts

  1. #1

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    ASP.NET, Sql Server and different accounts

    I've got a couple ASP.NET apps that access a Sql Server DB. On my development machine, named MIKELAP, I use Windows authentication and the name of the user is MIKELAP\ASPNET. That makes sense to me.

    I move this app to a different machine, named ADCWEBSERVER, which is a member or the ADC domain. Now to the DB, the user appears as ADC\ADCWEBSERVER$. That I don't understand.

    Another app, this one a web service. On my machine it's MIKELAP\ASPNET. Running still on my machine, just pointing to a different DB, the user appears as null.

    I'm determining the account that the DB wants to see by looking at the error page, which says Login failed for user... - pretty much the SqlException.Message property.

    Anyone know why an ASP.NET application assumes different user names?

    Thanks,
    Mike

  2. #2

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Re: ASP.NET, Sql Server and different accounts

    According to this article, you have to use impersonation. A comment to the article mentions application pools. Anyone run into this when web server and DB server are on different machines?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width