Just add this
into your VS2010 DevEnv configuration file, you'll find it in There is a If some people face the same problem while developing ASP.Net apps, they should add the Attribute to the Cassini config file placed in |
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>
在
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config
设置
修改前请备份
参考:
http://stackoverflow.com/questions/2637089/netfx40-legacysecuritypolicy-in-design-time-mode