Bug in XP causes blue screen if embedded manifest has duplicate xmlns tag: Difference between revisions
(New page: ==Building and Embedding a Manifest with Microsoft Visual Studio 2005 for Windows XP and Windows Vista Applications== In Visual Studio 2005, the C/C++ integrated development environment (I...) |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:English pages]] | |||
==Building and Embedding a Manifest with Microsoft Visual Studio 2005 for Windows XP and Windows Vista Applications== | ==Building and Embedding a Manifest with Microsoft Visual Studio 2005 for Windows XP and Windows Vista Applications== | ||
In Visual Studio 2005, the C/C++ integrated development environment (IDE) interface that permits the inclusion of additional manifest files in a target executable file does some processing on the XML, which inserts a duplicate xmlns tag. Because of this, the previously documented method on how to include a manifest in a Visual Studio 2005 C++ project cannot be used if the application should run on both Windows Vista and Windows XP. The following procedures are modified to include explicit version tags in the trustInfo section. | In Visual Studio 2005, the C/C++ integrated development environment (IDE) interface that permits the inclusion of additional manifest files in a target executable file does some processing on the XML, which inserts a duplicate xmlns tag. Because of this, the previously documented method on how to include a manifest in a Visual Studio 2005 C++ project cannot be used if the application should run on both Windows Vista and Windows XP. The following procedures are modified to include explicit version tags in the trustInfo section. | ||
Line 18: | Line 19: | ||
* [http://msdn2.microsoft.com/en-us/library/bb530410.aspx Read more here] | * [http://msdn2.microsoft.com/en-us/library/bb530410.aspx Read more here] | ||
<google>ENGELSK</google> |
Latest revision as of 13:59, 23 August 2008
Building and Embedding a Manifest with Microsoft Visual Studio 2005 for Windows XP and Windows Vista Applications
In Visual Studio 2005, the C/C++ integrated development environment (IDE) interface that permits the inclusion of additional manifest files in a target executable file does some processing on the XML, which inserts a duplicate xmlns tag. Because of this, the previously documented method on how to include a manifest in a Visual Studio 2005 C++ project cannot be used if the application should run on both Windows Vista and Windows XP. The following procedures are modified to include explicit version tags in the trustInfo section.
A fix is planned for the mt.exe tool to address the problem where it generates the duplicate namespace declaration in the XML. Until a new version of mt.exe is available, you can avoid the problem of merging manifests by explicitly adding in version tags into the trustinfo section of the manifest. A sample manifest is shown below:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2"> <ms_asmv2:security> <ms_asmv2:requestedPrivileges> <ms_asmv2:requestedExecutionLevel level="asInvoker"> </ms_asmv2:requestedExecutionLevel> </ms_asmv2:requestedPrivileges> </ms_asmv2:security> </ms_asmv2:trustInfo> </assembly>
<google>ENGELSK</google>