System.NullReferenceException

Topics: Logging Application Block
Sep 6, 2013 at 8:39 AM
Hello,
sometimes i got this message :
Message: Tracing to LogSource 'Trace' failed
StackTrace Information Details:
at System.Diagnostics.TextWriterTraceListener.WriteLine(String message)
at Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FlatFileTraceListener.TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, Object data) in e:\Builds\EntLib\Latest\Source\Blocks\Logging\Src\Logging\TraceListeners\FlatFileTraceListener.cs:line 200
at Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener.TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, Object data) in e:\Builds\EntLib\Latest\Source\Blocks\Logging\Src\Logging\TraceListeners\RollingFlatFileTraceListener.cs:line 142
at Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.TraceListenerWrapper.TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, Object data) in e:\Builds\EntLib\Latest\Source\Blocks\Logging\Src\Logging\TraceListeners\TraceListenerWrapper.cs:line 92
at Microsoft.Practices.EnterpriseLibrary.Logging.LogSource.TraceData(TraceEventType eventType, Int32 id, LogEntry logEntry, TraceListenerFilter traceListenerFilter, TraceEventCache traceEventCache) in e:\Builds\EntLib\Latest\Source\Blocks\Logging\Src\Logging\LogSource.cs:line 180
at Microsoft.Practices.EnterpriseLibrary.Logging.LogWriterImpl.ProcessLog(LogEntry log, TraceEventCache traceEventCache) in e:\Builds\EntLib\Latest\Source\Blocks\Logging\Src\Logging\LogWriterImpl.cs:line 557
Is that a know issue ?
Thanks,

Fabio
Editor
Sep 8, 2013 at 3:04 PM
That seems like a strange message. Can you elaborate on the specific scenario, ideally posting a Short, Self Contained, Correct (Compilable), Example?

~~
Randy Levy
entlib.support@live.com
Enterprise Library support engineer
Support How-to