title: How do I open the machine.config from .NET v2.0.50727
body: <p>The application I want to read settings from writes to the  section of the machine.config in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG. </p>
  
  <p>But when I use the following code:</p>
  
  <pre><code>Configuration myMC = WebConfigurationManager.OpenMachineConfiguration();
  Console.WriteLine(myMC.FilePath.ToString());
  </code></pre>
  
  <p>The path returned is always the .NET 4 machine.config:</p>
  
  <pre><code>c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
  </code></pre>
  
  <p>Edit: my app uses MEF, so it requires .NET 4, writing the app from .NET 2 is not an option.</p>