Impersonation not working with Asynchronous calls

Discussion in 'ASP .Net Security' started by Jason Elliott, Dec 11, 2003.

  1. I make a connection from my web service function to a sql
    database (on another machine) using Windows Only
    authentication and the following in my web.config
    <identity impersonate="true"
    userName="domain\username"
    password="password">
    </identity>

    When I call the function synchronously everything works
    fine but when I try to call it asynchronously it doesn't
    pass the impersonate info and I receive the following
    error back.

    Login failed for user '(null)'. Reason: Not associated
    with a trusted SQL Server connection.

    How do I pass windows credentials in order to connect to a
    SQL database in an asynchronous web service call?
     
    Jason Elliott, Dec 11, 2003
    #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. Dave Mullen

    Windows identity during asynchronous calls

    Dave Mullen, Jul 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    401
    Dave Mullen
    Jul 24, 2003
  2. Dave Mullen

    Windows identity during asynchronous calls

    Dave Mullen, Jul 30, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    354
    Tian Min Huang
    Aug 1, 2003
  3. zg_yuan
    Replies:
    0
    Views:
    381
    zg_yuan
    Aug 25, 2003
  4. Dave
    Replies:
    0
    Views:
    127
  5. Dave

    Asynchronous Web Services calls with Impersonation

    Dave, Jul 28, 2007, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    135
Loading...

Share This Page