472,992 Members | 3,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,992 software developers and data experts.

TRACE doesn't work on the remote box

Jay
I have an ASP.NET app that works on my box.
When I deployed it to the server, it doesn't work
It calls a webmethod, and looks like that call doesn't work.There is no
exception thrown.
So, I wanted to look at the trace. But nothing gets logged there too.
Although, On my box, the logging works, the webmethod works.

Oct 23 '06 #1
4 1864
Have you got Trace turned off anywhere (like in your Web.config, or in your
page?

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"Jay" <Ja*@microsoft.comwrote in message
news:eO**************@TK2MSFTNGP03.phx.gbl...
I have an ASP.NET app that works on my box.
When I deployed it to the server, it doesn't work
It calls a webmethod, and looks like that call doesn't work.There is no
exception thrown.
So, I wanted to look at the trace. But nothing gets logged there too.
Although, On my box, the logging works, the webmethod works.

Oct 23 '06 #2
Jay
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?

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"Jay" <Ja*@microsoft.comwrote in message
news:eO**************@TK2MSFTNGP03.phx.gbl...
>I have an ASP.NET app that works on my box.
When I deployed it to the server, it doesn't work
It calls a webmethod, and looks like that call doesn't work.There is no
exception thrown.
So, I wanted to look at the trace. But nothing gets logged there too.
Although, On my box, the logging works, the webmethod works.


Oct 23 '06 #3
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?

Oct 23 '06 #4
Jay
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?


Oct 23 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Joe Rattz | last post by:
I can get the Trace.Write() to work if I put the code in an aspx.cs file. But, I have a (C#) class called by my aspx.cs code that also has Trace messages, but none of them show up in the Trace...
5
by: guy | last post by:
Where do I get trace output? Trace.Write("Hello World");
5
by: who be dat? | last post by:
Hello all. I'm writing an application that is writing trace information that can be viewed in trace.axd. I would like to rename this and use a different name specific to my application. I know...
9
by: Joe Rattz | last post by:
I can't seem to get to trace.axd. I have turned tracing on in web.config. Here is how I currently have i configured: <trace enabled="true" requestLimit="10" pageOutput="false"...
1
by: Patrick | last post by:
When Tracing in ASP.NET, the IIS process (on IIs5.1) is locking on the Trace file, and I can't read the trace file without restarting the IIS: Even the following does NOT work (how could I fix...
1
by: Oleg Ogurok | last post by:
Hi there, My ASP.NET 2.0 app uses an external assembly that calls methods like Trace.Write() and Trace.TraceError() of namespace System.Diagnostics. I need to enable tracing in my web app so...
3
by: Simon | last post by:
Hi all, I'm trying to use the Trace class to log messages to a simple text file. I need to be able to provide a custom filename to be used. I've created a TextWriterTraceListener and added it to...
2
by: tshad | last post by:
I have a page with Trace.Warns statements in my Page_Load and functions that it calls, but it doesn't seem to work in a class that is defined on the same page. I am writing this in C# I am...
3
by: | last post by:
If this is simple, forgive my ignorance, but I'm coming from the CompactFramework where we don't use AppDomains. I did a fair bit of archive searching and couldn't find an answer and I got no...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.