Hi Everyone,
I am new to VS.NET (but VB6 veteran). I'm writing a VB.NET (2010) app that has both a GUI and a background Windows Service. My service was created following all the typical "how-to" articles.
My Windows Service installs just fine using installutil and VS command prompt, but I can't get the service to actually start without turning UAC off. If UAC is left on, I get the dreaded "Error 740: The requested operation requires elevation".
HUH???
This service installs as LocalSystem, the absolute highest privileged access on any system, even higher than Admin. Why on earth would further elevation be required? Even editing manifest/config for elevation doesn't make this error go away, which makes this all seem very broken to me.
Clue: Again, the service fires right up if UAC is disabled, which should NOT have to be required.
I have read Windows Service "how-to" articles and followed them to the best of my ability, and none of them ever mention this issue. I obviously cannot force my users to turn UAC off, so there must be something I'm overlooking.
Really desperate for help on this one, my thanks to anyone who can assist!
The manifest looks like this
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>