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.
- Login or Signup Now to post comments

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
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.