Reputation: 33
I took the manifest file from the Microsoft documentation: http://msdn.microsoft.com/en-us/library/ms742884.aspx It does not work!
<trustInfo xmlns="urn:0073chemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="highestAvailable"
UIAccess="true" />
</requestedPrivileges>
</security>
</trustInfo>
Manifest authoring error c1010005: The root element name should be <assembly/>
Upvotes: 2
Views: 779
Reputation: 941455
It is not a complete manifest, just a snippet. You can find one here.
Btw, there's no need to do this by hand at all in VS2012. It already supports auto-generating the manifest. Right-click your project, Properties, Linker, Manifest File. Change the UAC Execution Level setting to "highestAvailable".
Upvotes: 1