Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

visual studio 2010 - NetFx40_LegacySecurityPolicy in design-time mode

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.0Common7IDEdevenv.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 Filesmicrosoft sharedDevServer10.0WebDev.WebServer40.exe.config


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...