Asked By
Lauraw
620 points
N/A
Posted on - 06/21/2011
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.
Answered By
nash01
0 points
N/A
#118079
Clickonce installation problem – help
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Â
-
Go to Control Panel.
-
Under User Account and Family select "Add or remove user account".
-
Click one of your user accounts that you want to disable UAC
-
Under the user account click on the "Go to the main User Account page"Â
-
Under "Make changes to your user account" click on the "Change security settings"Â
-
Then unselect the "Use User Account Control (UAC) to help protect your computer".Â
-
Reboot
I hope this solves the problem
Regards,
Nash
Clickonce installation problem – help
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.