G
Guest
When I start a new thread the db connection fails with "Login failed for user '(null)'.."
I tried to set WindowsIndentity, but it still does not work
Code inside the new thread
===
WindowsPrincipal wp = new WindowsPrincipal(wi)
Thread.CurrentPrincipal = wp;
======
When I start a new thread, I pass it the current identity
===
DbReader dr = new DbReader (GetCurrent())
Thread DbThread = new Thread(new ThreadStart(dr.GetDataFromDb))
====
But is still gives me "Login failed for user '(null)'.."
What am I doing wrong
Thanks
-Sta
I tried to set WindowsIndentity, but it still does not work
Code inside the new thread
===
WindowsPrincipal wp = new WindowsPrincipal(wi)
Thread.CurrentPrincipal = wp;
======
When I start a new thread, I pass it the current identity
===
DbReader dr = new DbReader (GetCurrent())
Thread DbThread = new Thread(new ThreadStart(dr.GetDataFromDb))
====
But is still gives me "Login failed for user '(null)'.."
What am I doing wrong
Thanks
-Sta