Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Mage.exe and asking for users to trust me. FullTrust
 

Mage.exe and asking for users to trust me. FullTrust

I am doing some mage.exe manifest generation on a build box. This is what the command looks like...

mage -New Application -TrustLevel FullTrust -ToFile bob.exe.manifest -Name Bob -Version 3.00.26.578 -FromDirectory c:\deploy\3.00.26.578 -p x86

As you can see, I am asking for FullTrust. The manifest is generated and the trustInfo section looks like this...

<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet Unrestricted="true" ID="Custom" SameSite="site" />
<defaultAssemblyRequest permissionSetReference="Custom" />
</applicationRequestMinimum>
<requestedPrivileges xmlns="urnTongue Tiedchemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>

According to the trustInfo reference, it should look like this...

<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet ID="FullTrust" Unrestricted="true" />
<defaultAssemblyRequest permissionSetReference="FullTrust" />
</applicationRequestMinimum>
</security>
</trustInfo>

Am I getting FullTrust from mage with the ID set to Custom?

chuck the greek  Thursday, August 14, 2008 1:14 PM

No replies. Hopefully someone can help me out.

I've gone ahead and manually replaced my <trustinfo> block with this...

<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet ID="FullTrust" Unrestricted="true" />
<defaultAssemblyRequest permissionSetReference="FullTrust" />
</applicationRequestMinimum>
</security>
</trustInfo>

When testing the install, if I am installing from the internet zone I should get a prompt asking me if it is ok to give the app fulltrust, correct?

No dice. I don't get the prompt.

Am I getting fulltrust?

chuck the greek  Wednesday, August 27, 2008 12:58 PM

You can use google to search for other answers

Custom Search

More Threads

• VS Setup project with Windows Service
• ClickOnce Install Error
• check database structure when update
• Partial Trust
• Is ClickOnce now ClickTwice?
• OVerwrite XML file that has been modified by user
• How to delete the install custom action dll?
• ClickOnce:Setup File Installation Error
• Setup project for sql server 2005 reporting services
• checking connection string via setup project