No of visitors who read this post: 1015
Category: MS Programming
Type: Question
Author: Lauraw
Your rating: None Average: 5 (2 votes)

Hello brothers,

ClickOnce is a deployment technology that enables you to create self-updating Windows-based applications that can be installed and run with minimal user interaction. As a developer, I m trying to get my hands on it and grasp some technical skills to use it in my future projects.

Unfortunately when I try installing it, I was surprisingly welcomed with the error.

The error contents are

System.Security.Policy.PolicyException: Policy level ‘Enterprise’ could not be saved.

at System.Security.PolicyManger.EncodeLevel (Policy Level level)

at System.Security.PoliceyManger.EncodeLevel (String lable)

at System.Security.PoliceyManger.Save ()

at System.Security.Security.Manger.Save.Policy ()

at SyncMyCal.CAS.CASInstaller.ConfigureCodeAccessSecurity ()

at SyncMyCal.CAS.CASInstaller.Instal ()

I have no idea what all that stuff is as this is not programmed by me. I do want to install and play and learn this new type of programming technique …

So

Help is required….

System is Core I 3 with 2 GB ram and 320 GB hard disk with windows 7.

Thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

# (Solution Accepted)

Hello there,

Based on your problem stated above, i think there's something to do with permission policies in your system, did you run in administrative privileges? If not try disabling the UAC or try right clicking the installer and choose "Run as Administrator" .

Here's is a guide on how to disable the UAC in windows 7 

  1. Go to Control Panel.
  2. Under User Account and Family select "Add or remove user account".
  3. Click one of your user accounts that you want to disable UAC
  4. Under the user account click on the "Go to the main User Account page" 
  5. Under "Make changes to your user account" click on the "Change security settings" 
  6. Then unselect the "Use User Account Control (UAC) to help protect your computer". 
  7. Reboot

I hope this solves the problem

Regards,

Nash

#

HI There,

Here I have given a solution. I hope it will help you.

Remedy: Explicitly collection expiry of most ClickOnce deployment records.
1: In the Internet. Config file, increase an HTTP handler.
<? Xml version="1. 0"? >
<Configuration>
<Location path="Downloads">
<System. Web>
<HttpHandlers>
<Add verb="*" path="*. *" type="CustomHttpHandlers. ClickOnceApplicationHandler"/>
</HttpHandlers>
</System. Web>
</Location>

2: Develop a class known as ClickOnceApplicationHandler using namespace CustomHttpHandlers. Step: Help to make ClickOnceApplicationHandler inherit through IHttpHandler. Step: Implement the particular ProcessRequest members.
The above mentioned option helps to ensure that well-behaved firewalls will not cache ClickOnce deployment records.

Regards.