How to run .NET Dlls under different accounts

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to specify which windows account code in a .NET library will
run under. I used to do this in vb6 by using the MTS and specifying an
account.

Thanks.
 
If your code inherits from ServicedComponent, you can register it with COM+
and specify the account.
Alternatively, you can specify the account that the entire app will run
under using the config file. Google for "impersonate=true"

--- Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top