I
IK
Hi all,
How can I save trace output to the text file in app's dir. In addition, I
need to save debug info from Session_End event in global.asax.
The code below saves file only in Windows\System32 dir.
TextWriterTraceListener tracer = new
TextWriterTraceListener("traceout.txt");
Trace.Listeners.Add(tracer);
Trace.WriteLine("Exception"+ex.Message);
tracer.Dispose();
When I try to open file in apps folder I get error message "access denied to
the file ..."
Thanks a lot,
IK
How can I save trace output to the text file in app's dir. In addition, I
need to save debug info from Session_End event in global.asax.
The code below saves file only in Windows\System32 dir.
TextWriterTraceListener tracer = new
TextWriterTraceListener("traceout.txt");
Trace.Listeners.Add(tracer);
Trace.WriteLine("Exception"+ex.Message);
tracer.Dispose();
When I try to open file in apps folder I get error message "access denied to
the file ..."
Thanks a lot,
IK