Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...