Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Diagnostics.Trace funktioniert nicht mehr

4 views
Skip to first unread message

Robert Klein

unread,
Jun 1, 2010, 8:54:01 AM6/1/10
to
Hello,
I have a a problem with the following command:
System.Diagnostics.Trace.WriteLine("TEST!")

when I compile as a .NET 3.5 assembly it works, but when I compile the
identical project as a .NET 4.0 assembly the trace will not carried out.

I only want to use the DefaultListener and not to implement a
CustomTraceListener.

I tried it under Vista and Win7 with the VS2010 Ultimate.
For the DebugMonitor I use Sysinternals DbgView.

Can anybody help me ?
Thanks
Robert

Thomas Scheidegger

unread,
Jun 1, 2010, 9:12:21 AM6/1/10
to
Hallo Robert

vorab,
diese NG ist kurz vor Abschaltung!

> System.Diagnostics.Trace.WriteLine("TEST!")


> .NET 4.0 assembly the trace will not carried out.

versuche mal:
DefaultTraceListener defListener = new DefaultTraceListener();
defListener.WriteLine("BlaBla\r\n");

mit EXE _ausserhalb_ vom VStudio/Debugger ausgeführt.
Achte auch auf irgendwelche .config Dateien.


--
Thomas Scheidegger - 'NETMaster'
http://dnetmaster.net/

0 new messages