Adding WPF Text Writer Trace Listener in an Outlook Add In using wpf window/control
- by Deepak N
I'm working on a outlook 2003 AddIn using VSTO SE.We have few customized windows developed in WPF. It looks there are few client machines have problem with WPF rendering due to which there could be an exception due to addin is getting disabled.
I added a outlook.exe.config and added trace listeners for wpf Trace sources. I set it up according this link. The console trace listener is working fine for me. But I'm not able get the TextWriterTraceListener working with config
<add name="textListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="Trace.log" />
I tried giving absolute path for trace log file as "C:\Trace.log".The TextWriterTraceListener worked for a dummy wpf app with the same config.
Am I missing anything here.