473,670 Members | 2,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1935
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******** ******@TK2MSFTN GP03.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******** ******@TK2MSFTN GP02.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******** ******@TK2MSFTN GP03.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******** ********@TK2MSF TNGP03.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******** ******@TK2MSFTN GP02.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.diagnos tics>

<trace autoflush="fals e" indentsize="4">

<listeners>

<add name="myListene r" type="System.Di agnostics.TextW riterTraceListe ner"
initializeData= "C:\\temp\\gues tpulls\\Guestpu ll.log" />

<remove name="Default" />

</listeners>

</trace>

</system.diagnost ics>

--------------------------

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********@noS pamhotmail.comw rote in message
news:O8******** ******@TK2MSFTN GP02.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******** ********@TK2MSF TNGP03.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******* *******@TK2MSFT NGP02.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
1723
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 file, Trace.axd. Does anyone know why? Thanks.
5
1914
by: guy | last post by:
Where do I get trace output? Trace.Write("Hello World");
5
2926
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 the name of this is set in machine.config. I was hoping it would be possible to change this in web.config. I got it to work, kind of. Good news is I can change the name in my web.config file. Bad news is that trace.axd still works meaning I can...
9
4416
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" traceMode="SortByTime" localOnly="false" />
1
4344
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 this??): System.Diagnostics.Trace.WriteLine(System.DateTime.Now.ToLongTimeString()+ "--" + dirException.ToString()); System.Diagnostics.Trace.Flush(); ((System.Diagnostics.TraceListener) System.Diagnostics.Trace.Listeners).Close();
1
2947
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 that I could see the trace messages from the component. Here's what I've added to web.config so far: <system.web>
3
7832
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 the Trace.Listeners collections but nothing ever seems to get written to the file. The file does get created, but calling the Write methods doesn't seem to do anything.
2
2581
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 getting the following error at the 1st Trace.Warn: *********************************************** Compiler Error Message: CS0118: 'System.Web.UI.Page.Trace' denotes a 'property' where a 'class' was expected
3
3752
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 responsed in the remoting group after a week, so I'm throwing a little wider net this time. I have a desktop app (FFx 2.0) developed with Studio 05 that loads assemblies in a separate AppDomains from the primary UI. I'd like to be able to hook up...
0
8901
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8813
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8659
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7412
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6212
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1791
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.