Obsoleted CAS Attempts to Compile a Class

I am getting the following error trying to open a DevExpress report in VS 2010.

This method explicitly uses the CAS policy, which is deprecated by the .NET Framework. To enable CAS policy for compatibility reasons, use the NetFx40_LegacySecurityPolicy configuration switch. Please see http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

The project is installed in framework 3.5, but when I go to the provided link, the first sentence reads:

The security policy access part (CAS) is deprecated in the .NET Framework version 4

I have no explicit connection with the v4 framework, so I'm a little fixated on what causes this. How can I diagnose this problem more deeply?

+3
source share
1 answer

Visual Studio 2010 itself uses .NET 4.0, even if your project is targeting a different version of the framework. It looks like the CAS policy can be used in the DevExpress report designer or in the code that it invokes. What version of DevExpress product are you using?

+1
source

All Articles