Threading issues impersonate

rali08

Member
Joined
Nov 1, 2006
Messages
8
Programming Experience
1-3
We are using windows authentication and impersonation. We have an oracle backend. When i try to spawn a thread, it doesnot impersonate the user of the current thread. I have gone to the iis logs and seen that the thread spawned is the asp_net user of my computer. Here is the code behind

VB.NET:
Dim threadSimpleExtract As Thread
threadSimpleExtract = New Thread(AddressOf Get_DeviceType)
threadSimpleExtract.ApartmentState = ApartmentState.MTA
threadSimpleExtract.CurrentPrincipal = HttpContext.Current.User
threadSimpleExtract.IsBackground = True
threadSimpleExtract.Priority = ThreadPriority.Lowest

threadSimpleExtract.Start()
 
Back
Top