M
marcell
I have an ASP webapp that needs to access files using a UNC pathname to a
network-share
I setup "impersonation" and that all works as expected when executed in the
CurrentThread.
I need to kick-off a Method which will need exactly the same permissions
inside a new,long running, low priority Thread.
Problem is even if I set the new Thread's.CurrentPrincipal =
oldThread's.CurrentPrincipal ,
it displays the correct Identity.Name in the new Thread, but doesnt actually
adopt that old principal.
It moans about logon failure, and won't acually give me access to the Remote
Share.
One defffinite Solution is to Change the <processModel userName="..."
password=".."> tag in machine.config,
but this causes other problems as I have other WebApps that don't like
running under another account.
(and I don't think it's the right way to do it?)
Is there maybe a way to use one of the ThreadPools Threads for this job?
or is there a better way to do this?
Any Ideas?
network-share
I setup "impersonation" and that all works as expected when executed in the
CurrentThread.
I need to kick-off a Method which will need exactly the same permissions
inside a new,long running, low priority Thread.
Problem is even if I set the new Thread's.CurrentPrincipal =
oldThread's.CurrentPrincipal ,
it displays the correct Identity.Name in the new Thread, but doesnt actually
adopt that old principal.
It moans about logon failure, and won't acually give me access to the Remote
Share.
One defffinite Solution is to Change the <processModel userName="..."
password=".."> tag in machine.config,
but this causes other problems as I have other WebApps that don't like
running under another account.
(and I don't think it's the right way to do it?)
Is there maybe a way to use one of the ThreadPools Threads for this job?
or is there a better way to do this?
Any Ideas?