Superfly1611 Posted August 28, 2006 Posted August 28, 2006 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. Quote
Superfly1611 Posted August 29, 2006 Author Posted August 29, 2006 For those of you interested my solution (after some hardcore googling) was based largly on this article: http://aspalliance.com/650#Page2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.