Solved

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

Posted on 2011-09-07
3
2,180 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JQuery JavaScripot loop though RadioButtonList 4 32
Switching Visual Studio 2015 to normal debug display 3 39
.NET 2008 VB and C# 6 39
No Data for DropDown List 2 29
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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 new code templates in NetBeans IDE 8.0 for Windows.

821 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