I have an assembly which I call from within my asp.net web site.
I want the assembly to run under a different user than the -windows authenticated – main site runs under.
The reason is, the assembly needs admin permissions – but I don’t want the whole website/IIS to be running as an administrator.
Is this possible?
Thanks in advance,
Jim
My guess would be that the assembly would have to run in another process in order to use different credentials.
Here’s an example of how to kick off another process in .net
http://www.csharp-station.com/HowTo/ProcessStart.aspx
Then that process could run under whatever permission required.
If that’s the case you will have to coordinate the interaction between your website and the other process.
This would most likely be done using WCF