Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp.net threading question (running as a certain user)

Status
Not open for further replies.

BigDaddySean

Programmer
Aug 16, 2006
2
US
hi everybody .. new to forum. I'm a seasoned .NET developer (4+ years now) ...

I have an ASP.NET 2.0 application, 3 tier .. the business logic layer is a separate Class Library.

I am creating a new thread in a function I call in this business logic layer. When I run that thread, no matter what I do it reverts back to using NT AUTHORITY/NETWORK SERVICE user account on the 2003 Windows Server.

It is not using the identity impersonate I have setup, or the Username / Password I have setup in IIS.

I need to be able to run this thread as a specific user as it is accessing files on another machine.

any idea how to do this in code?

FYI, the processmodel tag in machine.config does not work either.
 
By default, the new thread will run under the process identity of ASPNET (on Network Service) so you will specifically have to impersonate the relevant user. This can be done in code and there are some details here:



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top