Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

How to: Enable ClickOnce Security Settings

Code access security for ClickOnce applications must be enabled in order to publish the application. This is done automatically when you publish an application using the Publish wizard.

In some cases, enabling code access security can impact performance when building or debugging your application; in these cases, you may wish to temporarily disable the security settings.

ClickOnce security settings can be enabled or disabled on the Security page of the Project Designer.

To enable ClickOnce security settings

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Security tab.

  3. Select the Enable ClickOnce Security Settings check box.

    You can now customize the security settings for your application on the Security page.

    Note Note

    This check box is automatically selected each time the application is published with the Publish wizard.

To disable ClickOnce security settings

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Security tab.

  3. Clear the Enable ClickOnce Security Settings check box.

    Your application will be run with the full trust security settings; any settings on the Security page will be ignored.

    Note Note

    Each time the application is published with the Publish wizard, this check box will be selected; you must clear it again after each successful publish.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.