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.lo g" />
<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" <da********@noSpamhotmail.comwrote in message
news:O8**************@TK2MSFTNGP02.phx.gbl...
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" <Ja*@microsoft.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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" <sp*****@yahoo.comwrote in message
news:Oe**************@TK2MSFTNGP02.phx.gbl...
Have you got Trace turned off anywhere (like in your Web.config, or in
your
page?