Version: DevExpress 8.3.6, ASPxScheduler Suite
IDE: Microsoft Visual Studio 2010 Professional, .NET 4 framework: (production version)
Opeating System: Windows Server 2003 SP2
1. Added to web.config:
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>
2. Added to C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
<NetFx40_LegacySecurityPolicy enabled="true"/>
2. lc.exe.config created:
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319"/>
</startup>
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>
</configuration>
4. modified D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config
<NetFx40_LegacySecurityPolicy enabled="true"/>
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.
具体的做法请参考下面的网页: