Threading - Security Context

Superfly1611

Regular
Joined
Feb 17, 2004
Messages
66
Location
UK
Hi all,

I'm currently writing a web application that performs several background-processes on a separate thread.

This web application is set (in the web.config) to impersonate a windows system account that has full permissions to all of the resources that the application interacts with (Database, network file resources).

Currently any standard page requests have no problem using these resources (retrieving data from a database, copy files from one location to another, etc) but if I try and do this on a thread in the back ground I get Permissions Exceptions thrown.

I assume therefore that any new threads you create do not run under the same security context as the main website (something that puzzles me greatly).

Is it possible to have the thread run under the same context as the main web application?
Surely this would be a common problem for any serious web application developer?

Many Thanks for any help you can provide.
 
Back
Top