Suck, har problem igen... :-( Configuration mha OpenExeConfiguration???
    
    
jag försöker läsa in en Configfil till ett Configurationobjekt och det funkar bra, men jag kan inte komma åt en del av datat.
<code>
<configuration>
  <appSettings>
    <add key="Hej" value="Hopp" />
  </appSettings>
  
  <system.diagnostics>
    <switches>
      <add name="Trace" value="4" />
    </switches>
  </system.diagnostics>
</configuration>
</code>
<code>
// Get the configuration file.
System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration("c:\\proj.exe");
MessageBox.Show(config.AppSettings.Settings["hej"].Value); // funkar bra... 
ConfigurationSection sel = config.Sections["system.diagnostics"]; // får inte ut nåt vettigt värde på något sätt
</code>
det är system.diagnostics delen och värdet 4 jag vill få tag i. Hur fanken kommer jag åt det? 
Edit: att komma åt det via TraceSwitch generalSwitch = new TraceSwitch("Trace", "Controls the Trace Level"); går ju i vissa fall, men inte i detta så det förslaget går bort.  ;)