Impersonate in ThreadPool

V

Viorel Ghilas

Hi all

I have an ASP.NET application that uses impersonate account to connect to DB, this works good. But in some cases I need to put some methods in ThreadPool. The methods from ThreadPool should do some foreground operations with DB. But .NET throws me the sql exception "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.". The thread from pool in execution proccess has an ASPNET account different from my impersonated account. How can I resolve this problem, do you have any suggestions?

with best regards
Viorel
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top