Our program has a .manifest file defined that provides the trustInfo manifest for our application as required for Windows 7 and Vista Certification requirements. This manifest is specified in the project Application properties page as an embedded Resource manifest.When trying to Publish the same application as a ClickOnce application, the generated published manifest includes 'our' trustInfo manifest (at the end) AND one at the beginning defined as <trustInfo> <security> <applicationRequestMinimum> <PermissionSet version="1" class="System.Security.NamedPermissionSet" Name="LocalIntranet" Description="Default rights given to applications on the local intranet" Unrestricted="true" ID="Custom" SameSite="site" /> <defaultAssemblyRequest permissionSetReference="Custom" /> </applicationRequestMinimum> <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <!-- UAC Manifest Options If you want to change the Windows User Account Control level replace the requestedExecutionLevel node with one of the following. <requestedExecutionLevel level="asInvoker" uiAccess="false" /> <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> <requestedExecutionLevel level="highestAvailable" uiAccess="false" /> If you want to utilize File and Registry Virtualization for backward compatibility then delete the requestedExecutionLevel node. --> <requestedExecutionLevel level="asInvoker" uiAccess="false" /> </requestedPrivileges> </security> </trustInfo>The Publish option for including the trustInfo from the application manifest is turned OFF, yet the information still seems to be included.The Enable ClickOnce security settings are enabled on the Security properties page (Full trust application)When you try to run the clickonce application with both trustInfo sections in the manifest, you get an error:Activation context generation failed for "C:\Users\kadorken\AppData\Local\Apps\2.0\4WR85383.E2G\PRGV7E7N.J61\main..tion_0000000000000000_0003.0003_8616b506a2e9467b\mainboss.exe.Manifest".Error in manifest or policy file "C:\Users\kadorken\AppData\Local\Apps\2.0\4WR85383.E2G\PRGV7E7N.J61\main..tion_0000000000000000_0003.0003_8616b506a2e9467b\mainboss.exe.Manifest" on line 1005. Multiple requestedPrivileges elements are not allowed in manifest.
Product Language
Version
Operating System
Operating System Language
Steps to Reproduce
Actual Results
Expected Results