.net 4.0 with NetFx40_LegacySecurityPolicy passcode protection will not work

I am trying to use the external DevExpress.XtraTreeList.v8.1.dll library in my office addin built using VS2010 beta 2. I get the following compilation time :

DevExpress.Utils.AppareanceObject threw an exception -> System.NotSupportedException.

Then an error message appears that for compatibility reasons I can use the NetFx40_LegacySecurityPolicy switch.

I tried to put this configuration variable in all of the following locations:

1) the configuration file of my applications.
2) C: \ Windows \ Microsoft.NET \ Framework \ v4.0.21006 \ msbuild.exe.config 3) C: \ Program Files (x86) \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ dev.exe.config

None of these issues resolved the issue. Here are the links I used.

re-enable cas

msdn.microsoft.com/en-us/library/ee191568 (VS.100) .aspx

How to get rid of this error so that I can create an application in vs 2010?

+4
source share
2 answers

LC.exe does not process license information debekpress 9.1.4 dlls Update: this program seems to be related to lc.exe. create the lc.exe.config file containing

<NetFx40_LegacySecurityPolicy enabled="true"/> 

under C: \ Program Files \ Microsoft SDK \ Windows \ v7.0A \ bin \ (NETFX 4.0 Tools) solves the problem

+4
source

This works, however, you will also need to create a file for devenv.exe.config to modify form designer changes, and a side effect of this is that the COM links in the project will give unclear errors.

The end result is that we really need an update from DevExpress on this. Beta fix for 2010.1 is expected anytime on DevExpress, hurry up! :)

+1
source

All Articles