locked
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="1.0.0.0" processorArchitecture="msil" name="test" type="win32"/>

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

    <security>

    <requestedPrivileges>

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

    </requestedPrivileges>

    </security>

    </trustInfo>

    </assembly>

     

    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?

     

     

    Thanks,

     

    ali.

     

     

    Thursday, June 21, 2007 9:46 AM