Impersonation not working with Asynchronous calls

J

Jason Elliott

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top