Elevation manifest ignored RRS feed

  • Question

  • I have a created a simple test application for Vista in C# using VS 2005 and I have embedded a manifest file (using mt.exe as a post build command) but it appears to be ignored by Vista. When I run the application (which is copied to the desktop) it runs as the current user and doesn't prompt for elevation or anything.

    Does anyone have any ideas why this might be the case?

    The following is my manifest xml:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
     <assemblyIdentity version="" processorArchitecture="X86" name="Privelidged" type="win32"/>
     <trustInfo xmlns="urn:schemas-microsoft.com:asm.v2">
        <requestedExecutionLevel level="requireAdministrator"/>

    Thanks in advance.

    Dave Lee

    Tuesday, October 10, 2006 4:17 PM


  •  <trustInfo xmlns="urn:schemas-microsoft.com:asm.v2">

    Should be:

     <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">


    Tuesday, October 10, 2006 7:30 PM