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?
source share