I have a C# (WPF) application (my own creation) that needs to open a port on the computer. This means that it requires administrative privileges to run. The app is currently unsigned and every time I run it it brings up the UAC prompt inquiring whether I want to let this program from an unknown publisher make changes to my computer.
I was wondering why Firefox doesn't trigger a UAC warning. After all, it too must open a port to be able to access the internet. Is it because Firefox is a native app?
requestedExecutionLevel level="requireAdministrator"in the app manifest. I had to do this because I useServiceHost.AddServiceEndpointto open the port, and this call fails unless the app is run as administrator. – Praetorian Sep 7 '11 at 5:41