I have an .NET application which is run with default rights as the current user, then at some point I need to perform an action which requires admin rights.
How can I get admin rights on-demand in a .NET application?
Requiring that the application is run with admin rights from the beginning is not appropriate as it may be that such ac...
Howdy,
I'm using the admin site in django. By default there are the user and group models. I enabled to select the groups when creating a new user and I now want to filter the set of assignable groups depending on the current user. E.g. if the user is a superuser he is able to assign all groups. If he's within a subgroup, he can only as...
I've written an installer that installs a windows service (A) that needs to start/stop another service (B). However, when A tries to start/stop B, I get this exception:
System.InvalidOperationException: Cannot open MyService service on computer '.'. ---> System.ComponentModel.Win32Exception: Access is denied
The installer installs the ...
I attempted to do some Win32 stuff in C# 3.5 to get elevated User Rights for a console app. I develop on Visual Studio 2008 SP1/GDR and things work fine when run under the debugger. Things also work fine when I run the console app stand-alone. Things also run fine when I package everything into an MSI and install it on a 2003 server and ...