Ask a Question related to ASP.NET Security, Design and Development.
-
Viorel Ghilas #1
Impersonate in ThreadPool
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
Viorel Ghilas Guest
-
CF7 Hanging; Memory &/orjrunx.scheduler.ThreadPool$Throttle
We have Solaris 9 (current patchset) w/ CF7 standalone and Oracle9 on another server. We run on multiple servers and recently several servers... -
Change Max number of thread in threadpool
Hi, Is it possible to set the max number of thread a Threadpool can handle in code ? thks -
DirectoryEntry Impersonate or WindowsIdentity Impersonate?
Another security question. Our project interfaces with the Active Directory. To satisfy the security issues, we have a couple options when we talk... -
Not enough free threads in the ThreadPool
I am getting this error on a request to a webservice after a long running one completes. Does this make sense to anybody? Of course it doesn't... -
ThreadStaticAttribute and threadpool
a thread static will live the life of the thread. in asp.net, you are right, there is a thread pool, with a min and max, so the life of a thread is... -
Dominick Baier [DevelopMentor] #2
Impersonate in ThreadPool
Unfortunately impersonation tokens are not copied to new threads (this is 'fixed' in .NET 2.0).
you have to impersonate the account on the new thread - that's the only solution.
Dominick Baier - DevelopMentor
[url]http://www.leastprivilege.com[/url]
nntp://news.microsoft.com/microsoft.public.dotnet.framework.aspnet.security/<#WRqVfcCFHA.444@TK2MSFTNGP15.phx.gbl>
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
This post contained attachments. By default, NewsGator will not download attachments, but can be configured to do so. If you wish to automatically download attachments for this newsgroup, go to NewsGator/Subscriptions, select this group and click Edit, and change the Options.
[microsoft.public.dotnet.framework.aspnet.security]
Dominick Baier [DevelopMentor] Guest



Reply With Quote

