locked
Partial Trust RRS feed

  • Question

  • I'm a total newbie to VB.NET.

    I got a Request Failed - "Application reuires Full Trust Permission to Run Correctly"
    Then I found the ClickOnce Security page and set it to Full Trust

    Is there a way of doing this in code?

    Thanks
    • Moved by nobugz Saturday, August 15, 2009 11:15 PM (From:.NET Base Class Library)
    Saturday, August 15, 2009 10:30 PM

Answers

  • Hello,

    >Is there a way of doing this in code?

    Permissions for an application are determined by the settings in the <trustInfo> Element (ClickOnce Application) element of the application manifest. Visual Studio automatically generates this information based on the settings on the project's Security property page. A ClickOnce application is granted only the specific permissions that it requests. For example, where file access requires full-trust permissions, if the application requests file-access permission, it will only be granted file-access permission, not full-trust permissions. When developing our ClickOnce application, we should make sure that we request only the specific permissions that the application needs.

    More information
    http://msdn.microsoft.com/en-us/library/z17ceyya.aspx
    http://msdn.microsoft.com/en-us/library/6ad1fshk.aspx

    Thanks,
    Rong-Chun Zhang
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com



    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, August 17, 2009 6:55 AM

All replies

  • Why would you need to do this in code? Once you set it in the application properties, it's set.

    RobinDotNet
    Click here to visit my ClickOnce blog!
    Monday, August 17, 2009 6:17 AM
  • Hello,

    >Is there a way of doing this in code?

    Permissions for an application are determined by the settings in the <trustInfo> Element (ClickOnce Application) element of the application manifest. Visual Studio automatically generates this information based on the settings on the project's Security property page. A ClickOnce application is granted only the specific permissions that it requests. For example, where file access requires full-trust permissions, if the application requests file-access permission, it will only be granted file-access permission, not full-trust permissions. When developing our ClickOnce application, we should make sure that we request only the specific permissions that the application needs.

    More information
    http://msdn.microsoft.com/en-us/library/z17ceyya.aspx
    http://msdn.microsoft.com/en-us/library/6ad1fshk.aspx

    Thanks,
    Rong-Chun Zhang
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com



    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, August 17, 2009 6:55 AM
  • Hello,

    Have you got any progress on this issue? If there is anything else we can help, welcome to post here.

    Thanks,
    Rong-Chun Zhang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Wednesday, August 19, 2009 9:48 AM