Solved

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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 and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

737 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