Just add this

<NetFx40_LegacySecurityPolicy enabled="true"/> 

into your VS2010 DevEnv configuration file, you'll find it in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config

There is a <runtime> section, just copy it at the first place.
I've had the same problem with DevExpress 8.2

If some people face the same problem while developing ASP.Net apps, they should add the Attribute to the Cassini config file placed in C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\WebDev.WebServer40.exe.config

<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

<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

相关文章:

  • 2021-07-10
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-10
  • 2022-01-22
  • 2022-12-23
  • 2021-10-02
  • 2022-01-03
  • 2021-11-15
相关资源
相似解决方案