How to avoid "System.ComponentModel.Win32Exception: The requested operation requires elevation" RRS feed

  • 问题

  • When my program running on windows server 2008 it always throw such an exception:System.ComponentModel.Win32Exception: The requested operation requires elevation
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
        When using the method System.Diagnostics.Process.Start(ProcessStartInfo startInfo) to invoke a seperate .exe application, I saw there is a shield in the icon of the application, I knew it has something to do with UAC on new windows OS.

    How could I modify my program and start it correctly?  

    2011年1月19日 9:16