views:

16

answers:

0

Hi,

I have built a win application with C# framework 3.5 sp1 When I publish the project and install it on other machine (with framework 3.5 sp1)

I get "application attempted to perform an operation not allowed by the security policy..."

After learning about this a bit I found two leads:

  1. "Administrative tools-->microsoft .net configuration (Runtime Security Policy) http://support.microsoft.com/kb/320268

    (Sadly my user uses Windows Vista, where I found out that I have to install the .Net 2.0 sdk in order to be able to change)

  2. Use of System.Security.Configuration: http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/69e86b82-3841-4835-957c-36cb480401ce

I tried both with no success and I need your help

  • another strange thing that may be important is that the application is installed automatically without consulting the user regarding the installation path

C:\Users\myUserName\AppData\Local\Apps\2.0\MEMD0ABX.O2O\67AZYK31.RP4\ruth..tion_715b12ee1cded36f_0001.0000_867930b3c68a2d04

the link to the app is appref-ms file located in C:\Users\Ruth\myUserName\Roaming\Microsoft\Windows\Start Menu\Programs\publisher\na

Thanks Asaf