[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Question on ThreadPool Security

Danny

11/6/2003 7:51:00 AM

Hi.

I am using the system threadpool in an ASP.NET application. when I get
called back in the context of a threadpool thread, the current principal is
a generic principal that is not authenticated. My application runs with an
authenticated Windows principal but because I rely on the thread-pool, my
code ends up running without the necessary security privileges.

How do I make the thread-pool call my application callback with a specific
principal. I tried changing Thread.CurrentPrincipal (after calling
SetPrincipalPolicy on AppDomain) but that did not elevate the privileges as
desired.

Thanks in advance!

-Danny-