February 2015 Entries

System.Diagnostics.TextWriterTraceListener with ASP.Net 4

I spent hours trying to figure out why my web app wasn't writing to a debug file.I had this in my web.config<system.diagno... <trace autoflush="true"> <listeners> <add name="textLogListener" type="System.Diagnostics.Te... initializeData="myapp.log" /> <remove name="Default" /> </listeners> </trace></system.d... And in my .cs code addedSystem.Diagnostics.Tra... World");Worked great in VS2012 but when I published ......