A
Adrian Bezzina
Hi Everyone,
I am having difficulty in starting a new thread in ASP.NET while processing
a page request.
I have an aspx page that runs a whole lot of batch reports. These batch
reports could take up to 5 minutes to run, and then once complete, are
emailed or archived.
The problem that I am encountering is that the batch runs fine when I DON'T
run the program to spawn the batch reports, but as soon as I try and run the
program to spawn the batch reports on a NEW thread, I get permission issues.
The ASP.NET worker thread is using impersonation - set in the WEB.CONFIG
file. I know for a fact that the new thread is not running in the same
'user' context as the ASP.NET worker thread, as the error is some to the
likes of 'permission denied for user ASP.NET'.
How do I get a new thread to run in the same 'user' context as the ASP.NET
worker thread?
Regards,
Adrian.
I am having difficulty in starting a new thread in ASP.NET while processing
a page request.
I have an aspx page that runs a whole lot of batch reports. These batch
reports could take up to 5 minutes to run, and then once complete, are
emailed or archived.
The problem that I am encountering is that the batch runs fine when I DON'T
run the program to spawn the batch reports, but as soon as I try and run the
program to spawn the batch reports on a NEW thread, I get permission issues.
The ASP.NET worker thread is using impersonation - set in the WEB.CONFIG
file. I know for a fact that the new thread is not running in the same
'user' context as the ASP.NET worker thread, as the error is some to the
likes of 'permission denied for user ASP.NET'.
How do I get a new thread to run in the same 'user' context as the ASP.NET
worker thread?
Regards,
Adrian.