J
José Joye
Hello,
I know the problem I'm having has been mentioned several time...
However, the answers provided are not crystal clear.
Here is my problem:
I'm building a small web service that I will host on an internet Server
provider site (eg: WebMatrixHosting)
To be able to trace how it reacts, I want to write information in a log
file. To do so, I want to use a tracelistener and write the information in a
log file located in the application directory.
Here is a snippet of what I do:
gLogFileSwitch = new TraceSwitch("LogFileSwitch", "Local File Trace
Switch");
HttpRequest currRequest = HttpContext.Current.Request;
string strPath = currRequest.MapPath(currRequest.ApplicationPath);
Trace.Listeners.Add(new TextWriterTraceListener(strPath +
@"\SmallGame.log"));
Doing this, I receive an "access denied error".
What is the correct way to go?
Thanks,
José
I know the problem I'm having has been mentioned several time...
However, the answers provided are not crystal clear.
Here is my problem:
I'm building a small web service that I will host on an internet Server
provider site (eg: WebMatrixHosting)
To be able to trace how it reacts, I want to write information in a log
file. To do so, I want to use a tracelistener and write the information in a
log file located in the application directory.
Here is a snippet of what I do:
gLogFileSwitch = new TraceSwitch("LogFileSwitch", "Local File Trace
Switch");
HttpRequest currRequest = HttpContext.Current.Request;
string strPath = currRequest.MapPath(currRequest.ApplicationPath);
Trace.Listeners.Add(new TextWriterTraceListener(strPath +
@"\SmallGame.log"));
Doing this, I receive an "access denied error".
What is the correct way to go?
Thanks,
José