I had created a project with target framework as 2.0 using VS2008 and Devexpress grid control 8.3.5. After upgrading our IDE we have now started using VS2010.
When i open the same project, i cannot get to view the forms. I get a message
"This method explicitly uses CAS policy, which has been obsoleted by the .NET Framework. In order to enable CAS policy for compatibility reasons, please use the NetFx40_LegacySecurityPolicy configuration switch. Please see http://go.microsoft.com/fwlink/?LinkID=155570 for more information. "
The call stack of the error comes to
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence)
at DevExpress.Data.Helpers.SecurityHelper.IsPermissionGranted(IPermission permission)
Could you please help for the issue.
The problem with CAS policy is known to us. Please upgrade to the 8.3.8 version where this problem is eliminated. Also, please refer to the following issue for a possible workaround: Components are incompatible with .NET 4.0 / VS2010 CTP / Beta 1