Author Topic: How to do: Run as Administrator  (Read 2519 times)

Josef Stadelmann

  • EA User
  • **
  • Posts: 59
  • Karma: +0/-0
  • as simple as possible, but not too simple
    • View Profile
How to do: Run as Administrator
« on: April 15, 2011, 12:27:25 am »
I have a larger VS solution with one project beeing a web service. This web service server needs to run as administrator on my local pc; hence I have to launch VS in "Run As Administrator" as well. Then I can make my web service the default project and touch run; a console window pops up and my web service is running;

On the way to record a sequence diagram .... I have the same issue; this time I need to become able to run/debugg the same application but launching it as Administrator from the EA;

How cn I enforce that the EA and in turn MDG is launched by VS in the "Run As Administrator" mode, and that way only can establish the proper context/mode to run my webservice in admin mode;

otherwhise my web service will just raise an exception.

This on a Vista PC.

Josef

shaunf

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: How to do: Run as Administrator
« Reply #1 on: April 16, 2011, 02:33:42 am »
maybe this will help I need to run an application as administrator recently and stumbled across it. http://www.codeproject.com/KB/cs/cpimpersonation1.aspx