Hi,
When i run testapp.exe the testapp.exe.config file i have in the
DEBUG directory gets deleted, and the TraceSwitch in my code never
gets set.
testapp.exe.config
____________________
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.diagnostics>
<switches>
<add name="GlobalTrace" value="3" />
</switches>
</system.diagnostics>
</configuration>
_____________________
C# code
_____________________
public static System.Diagnostics.TraceSwitch
generalSwitch =
new
System.Diagnostics.TraceSwitch("GlobalTrace", "Entire Application");
_____________________
What am i doing wrong? I am trying to get generalSwitch.TraceVerbose
set to true for debugging through an XML file.
Thanks,
Mark