NetFx40_LegacySecurityPolicy在设计时模式 [英] NetFx40_LegacySecurityPolicy in design-time mode
问题描述
有什么办法可以使NetFx40_LegacySecurityPolicy开启执行遗留设计时代码?更具体地说,有没有办法使DevExpress 8.2 winforms设计师工作VisualStudio 2010?
由于这个问题,我收到错误,没有找到有关设计时模式的帮助,只需运行时:
< runtime>
< NetFx40_LegacySecurityPolicy enabled =true/>
< / runtime>
如何解决winforms设计师的问题?
只需添加
< NetFx40_LegacySecurityPolicy enabled =true/> ;
到您的 VS2010 DevEnv配置文件,您会发现它在 C:\程序文件(x86)\Microsoft Visual Studio 10.0 \Common7\IDE\devenv.exe.config
有一个< runtime>
部分,只需将其复制到第一个位置。
我遇到了同样的问题DevExpress 8.2
如果有些人在开发 ASP.Net应用程序时遇到同样的问题,他们应该将属性添加到Cassini配置文件中 C:\程序文件(x86)\Common Files\microsoft shared\DevServer\10.0\WebDev.WebServer40.exe.config
Is there any way to make legacy design-time code execute with NetFx40_LegacySecurityPolicy switched on?
More specificaly, is there any way to make DevExpress 8.2 winforms designer work in VisualStudio 2010?
I got errors due to this issue and found no help about design-time mode, just about run-time:
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>
How should I fix problems with winforms designer?
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
这篇关于NetFx40_LegacySecurityPolicy在设计时模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!