I have an application that works fine when run with administrator privileges. When run by a user it has problems reading from the Event Log. I would like to run the code in the debugger but not with my administrator settings. Is this possible in Visual Studio 2008 ?
+1
A:
Right click on the Visual Studio icon and select Run as...
:
There's also the runas.exe command you could use to start Visual Studio under a different account.
Darin Dimitrov
2010-09-05 09:36:37
@Joshua, yes, that's why I proposed to run Visual Studio under a different account. The `runas` command allows you to specify any user. Didn't you understand my answer?
Darin Dimitrov
2010-09-05 10:06:58
@Joshua: Darin wrote absolutly correct information. If you not yet knows RunAs I recommend you to read about it. It can be very helpfull sometimes. Moreover be not so quickly with downvoting of other questions. It's a bad habit.
Oleg
2010-09-05 10:35:48
Is there's anyway of doing this w/o restarting VS?
Nissim
2010-09-05 12:45:32
@Nissim, yes, look at [this thread](http://social.msdn.microsoft.com/Forums/en/vsdebug/thread/eeba26cb-2336-4a80-99f4-ca4167d0758c)
Darin Dimitrov
2010-09-05 14:46:15
After looking at the question again (many, many times) I realized my answer would have been correct in the direction I read it as going, but the asker was wanting to go the other direction. Sorry about that. :)
Joshua
2010-09-05 23:19:45
+1
A:
In Visual Studio 2010 you can use VSCommands to debug with different permissions: Maybe it's time to upgrade ;)
Registered User
2010-09-13 22:35:10