Re: TRACE doesn't work on the remote box
- From: "Jay" <Jay@xxxxxxxxxxxxx>
- Date: Mon, 23 Oct 2006 15:42:13 -0500
I have this in my web.config file:
<system.diagnostics>
<trace autoflush="false" indentsize="4">
<listeners>
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\\temp\\guestpulls\\Guestpull.log" />
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
--------------------------
In my Code, I have the line:
Trace.WriteLine("Initialize(): Hello!");
Nothing gets logged to my log file on the remote server.
(On my local box, it works)
"David Wier" <david_wier@xxxxxxxxxxxxxxxxx> wrote in message
news:O83Nzut9GHA.4572@xxxxxxxxxxxxxxxxxxxxxxx
You were talking about Tracing though - whether it works or not - if you
want to do tracing, it needs to be turned on somewhere
You can do it inside the web.config file, or you on each web page where
you
want tracing. For instance, you can turn it off everywhere (completely) in
the Web.config, but enable it in the page directive in your web page.
--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"Jay" <Jay@xxxxxxxxxxxxx> wrote in message
news:%230sGIet9GHA.3344@xxxxxxxxxxxxxxxxxxxxxxx
The same code works on my box.
I haven't changed anything while deploying to the remote server.
Where do I check that anyways?
"Elmo Watson" <sputnik@xxxxxxxxx> wrote in message
news:OeIBeZt9GHA.4620@xxxxxxxxxxxxxxxxxxxxxxx
Have you got Trace turned off anywhere (like in your Web.config, or in
your
page?
.
- References:
- TRACE doesn't work on the remote box
- From: Jay
- Re: TRACE doesn't work on the remote box
- From: Elmo Watson
- Re: TRACE doesn't work on the remote box
- From: Jay
- Re: TRACE doesn't work on the remote box
- From: David Wier
- TRACE doesn't work on the remote box
- Prev by Date: Re: ASP.NET and Page Navigation
- Next by Date: Re: register css style ***
- Previous by thread: Re: TRACE doesn't work on the remote box
- Next by thread: Re: IFrame and credentials
- Index(es):