Solved

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

Posted on 2011-09-07
3
2,047 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
Comment Utility
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
Comment Utility
Thank you effes, it works like a charm!
0
 
LVL 6

Expert Comment

by:effes
Comment Utility
You're welcome.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
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 and create keystrokes in Netbeans IDE 8.0 for Windows.

772 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

9 Experts available now in Live!

Get 1:1 Help Now