Clickonce installation problem – help

Asked By 620 points N/A Posted on -
qa-featured

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.

SHARE
Best Answer by nash01
Best Answer
Best Answer
Answered By 0 points N/A #118079

Clickonce installation problem – help

qa-featured

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

Answered By 0 points N/A #195649

Clickonce installation problem – help

qa-featured

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.

Related Questions