?
Solved

How to use the <NetFx40_LegacySecurityPolicy> Element in .NET 4 configuration files?

Posted on 2011-09-07
3
Medium Priority
?
2,441 Views
Last Modified: 2012-05-12
Hi, I'd like to use the <NetFx40_LegacySecurityPolicy> element in the configuration file of one of my projects in Visual Studio 2010, as described here : http://msdn.microsoft.com/en-us/library/dd409253.aspx , but I don't know what is the XML configuration file to modify.
Can you please help?
Many thanks
0
Comment
Question by:JulienVan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
effes earned 2000 total points
ID: 36497748
Hi,

that element should go into the App.config of the project. If there is none you can add one (right click on the project in the Solution Explorer and select Add -> New item... and select "Application Configuration File").
Just add the <NetFx40_LegacySecurityPolicy> element (as described in the link you posted) to the <runtime> section (if that's not there just add it as well).

Hope that helps,
Frank
0
 
LVL 2

Author Comment

by:JulienVan
ID: 36498491
Thank you effes, it works like a charm!
0
 
LVL 6

Expert Comment

by:effes
ID: 36499029
You're welcome.
0

Featured Post

Major Serverless Shift

Comparison of major players like AWS, Microsoft Azure, IBM Bluemix, and Google Cloud Platform

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question