Elevation Fails, why? RRS feed

  • Question

  • Hi,


    i am testing out vista application manifests and elevation.


    my app is a simple form with a button that displays a messasge box.

    I have deployed it using clickonce.


    the only code ive added is


    private void button1_Click(object sender, EventArgs e)


    MessageBox.Show("Version 1");



    and a manifest file




    <?xml version="1.0" encoding="utf-8" standalone="yes"?>

    <assembly xmlns="urnTongue Tiedchemas-microsoft-com:asm.v1" manifestVersion="1.0">

    <assemblyIdentity version="" processorArchitecture="msil" name="test" type="win32"/>

    <trustInfo xmlns="urnTongue Tiedchemas-microsoft-com:asm.v3">



    <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>






    when i install the app, with requestedExecutionLevel = "asInvoker" it installs fine with no elevation prompts.

    when install the app, with requestedExecutionLevel = "requireAdministrator" the install fails.


    i expected the app to ask for elevation and then install.


    the error in the log is

    + Execution level requested by the application is not supported.


    what could be causing the error?








    Thursday, June 21, 2007 9:46 AM