Solved

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

Posted on 2011-09-07
3
2,124 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
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
effes earned 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax Error 2 62
Set value of dynamically created checkboxlist 2 31
jQuery - following an example but can I save data server side? 20 46
Expression Evaluater 3 24
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now