B
Bo Campbell via .NET 247
Hello,
I have a web app that is being used to restore sql databases. Iam using a new thread to do the sql restores so I can keep theweb page from timing out (it checks a database to see thestatus, etc.) My problem is that I have tried just abouteverything to give that thread the domain username and passwordthat is setup for it on the network. As soon as the threadstarts, it goes straight to the machine name for the login.
I have read things that are very close to what I need on here butnothing that really pinpoints it. I thought about making thefunction into a service but feel i'm very close. Here is my codewhere I call the thread:
tDBRestore = New Thread(AddressOf RestoreDB)
tDBRestore.Name = "tRestoreDB"
tDBRestore.Start()
.NET is impersonating the logged in user, which is great, untilit hits the new thread.
Thanks,
Bo
I have a web app that is being used to restore sql databases. Iam using a new thread to do the sql restores so I can keep theweb page from timing out (it checks a database to see thestatus, etc.) My problem is that I have tried just abouteverything to give that thread the domain username and passwordthat is setup for it on the network. As soon as the threadstarts, it goes straight to the machine name for the login.
I have read things that are very close to what I need on here butnothing that really pinpoints it. I thought about making thefunction into a service but feel i'm very close. Here is my codewhere I call the thread:
tDBRestore = New Thread(AddressOf RestoreDB)
tDBRestore.Name = "tRestoreDB"
tDBRestore.Start()
.NET is impersonating the logged in user, which is great, untilit hits the new thread.
Thanks,
Bo