G
Guest
I start a new thread to run a long database query and show the progress bar
Thread DbThread = new Thread(new ThreadStart(dr.GetDataFromDb));
DbThread.Start()
Response.Redirect ("WaitPage.aspx")
Problem is that the new thread ignores the identity of asp_netwp.exe worker process.
There is <identity impersonate="true" /> in the web.config and I use integrated SQL Security, that is the identity of the anonymous account in IIS metabase. However, the new thread does not know anything about this and SQL connection fails
I can set processModel account, but maybe there is a better way
The Thread class has a static CurrentPrincipal member. I tried to use pass it inside the thread class, but it did not work..
Thanks
-Sta
Thread DbThread = new Thread(new ThreadStart(dr.GetDataFromDb));
DbThread.Start()
Response.Redirect ("WaitPage.aspx")
Problem is that the new thread ignores the identity of asp_netwp.exe worker process.
There is <identity impersonate="true" /> in the web.config and I use integrated SQL Security, that is the identity of the anonymous account in IIS metabase. However, the new thread does not know anything about this and SQL connection fails
I can set processModel account, but maybe there is a better way
The Thread class has a static CurrentPrincipal member. I tried to use pass it inside the thread class, but it did not work..
Thanks
-Sta