473,808 Members | 2,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Tracing problems!

Hello All.

Could you plase help me to configure tracing in Asp.Net application.
I use Win2ksp4, .Net 1.1 (+ all latest patches for .Net 1.1 an for Windows).
I faced with stable error. On first access to the site it said:
===quote:begin= ==
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: Exception in configuration section handler.
Source Error:
Line 82: </appSettings>
Line 83:
Line 84: <system.diagnos tics>
Line 85: <switches>
Line 86: <add name="traceLeve l" value="0" />
Source File: c:\inetpub\wwwr oot\AmbianceWeb NH\web.config Line: 84
===quote:end===
Nov 19 '05 #1
2 1262
sorry. I pressed Ctrl+Enter by mistake... :-)

I give you more detail about the issue.
My web.config file contains lines:

<system.diagnos tics>
<switches><ad d name="traceLeve l" value="0" /></switches>
<trace autoflush="true " indentsize="4">
<listeners>
<add name="myListene r"
type="System.Di agnostics.TextW riterTraceListe ner"
initializeData= "c:/Inetpub/wwwroot/MySite/log/_reports_trace. log"
/>
<remove type="System.Di agnostics.Defau ltTraceListener "/>
</listeners>
</trace>
</system.diagnost ics>

The line 84 is the line with "<system.diagno stics>".

What I want - I want to have nice tracing in my Asp.Net application.
Tracing that configured from web.config file and understands "~" in path to
log file.
For example:
<add name="myListene r" type="System.Di agnostics.TextW riterTraceListe ner"
initializeData= "~/log/_reports_trace. log" />
I mean - I do not wish to use physical path (because site location cound be
different on different servers).

Is it possible to do such thing in .Net 1.1 with standard stuff?
Or should I code my special TraceListener?

WBR,
Dmitry.
"Dmitry Bond." <db@alfa-team.com> wrote in message
news:de******** ***@news.kiev.s ovam.com...
Hello All.
Could you plase help me to configure tracing in Asp.Net application.

[...]
Nov 19 '05 #2
Hello.

Finally I solved this problem by writing my own TraceListener that creates
TextWriter not at the moment of listener creation but on first access to it.
Also it does not stop whole site if unable to create trace log file (usually
by security reasons) and also it supports "~/" in path to trace log file.

WBR,
Dmitry.
Nov 19 '05 #3

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

Similar topics

2
1701
by: Trace User | last post by:
Hello, I have a design question regarding Tracing and Trace Switches. I understand that Trace Switches can be configured through an application's .config file. When a switch is instantiated, the application automatically checks the configuration file for a matching named switch. If there's a match, the configuration parameters are set.
1
1406
by: Jim Heavey | last post by:
I am trying to understand the use of Tracing/ In the @page you can add Trace="true" which provides a page of tracing information. Where can I find some material to help me make sense of the information which is presented. I hear it is very useful, so I would like to undertand how to use it. What is the difference between the @Page directive of Trace="True" and the <trace> element in the web.Configure file? I have used this option...
0
1266
by: Paul Ibison | last post by:
HI when I have a page which calls a component I want to do the following - tracing set to false on the pag tracing set to true in the componen tracing set to false in the page after the call to the component. This is so any further tracing calls are ignored However, I find that there are no tracing results. Can I do this sort of thing - perhaps I am missing something Regards Paul Ibiso
5
1592
by: Dabbler | last post by:
When I first start up an ASP.NET application with tracing enabled in web.config the first few pages show trace at bottom of the page but then at some point the pages return to normal with no trace information displayed. Can anyone tell me what might be causing the Trace to turn off? Thanks for any help with this ..NET 1.1 running on localhost
6
1662
by: serge calderara | last post by:
Dear all, I have an applicatin that generate a querry to an SQL server, then display results on a second webform. I try to see how tracing works, then I have notice that as soon as I implement tracing on the page, when I click on the BACK button of explorer I get a warning message that information of the page needs to be resend to be displayed ?
2
1769
by: deepukutty | last post by:
Hi all, I know tht we can do tracing in two ways.one in application level and the other is at Page level. I am able to see the details of trace either on the page itself or .../trace.axd page. I want to use maximum out of the available trace details . or let me put it like this.... tell me the actual scenario's where these trace details will be use ful and
3
6836
by: Tim Mavers | last post by:
Is there an easy way to turn on soap tracing of some sort for a web service? We have built a web service (in production) that is experiencing problems for a client. Is there an easy way we could enable some sort of tracing so we could view the entire HTTP request (and payload)? I would prefer not to have to recompiling our own home-grown tracing code into the app because it is hard to deploy. Does .NET support this internally?
0
1369
by: cnys | last post by:
We have an ASP.NET 2.0 (C#) app and we're trying to add tracing into it. The tracing functionality within .NET is great, but when we output this to a file, it's kind of sparse. So, we're looking for ideas on how to get more tracing info. output to our log file than what's currently output by calling the Write methods. Here are some snippets of what we're thinking of:
0
1343
by: rehto | last post by:
We have an ASP.NET 2.0 (C#) app and we want to enable tracing (see the code snippets below). The first time a user navigates to the app., the tracing works fine (the ASP.NET tracing appears on the screen and writes to a text file). The problem happens any subsequent time the app. is used--tracing doesn't happen. It's as if tracing just turns itself off. So, we only get tracing on the first time the app runs but never any other time. ...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10373
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...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
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
9195
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...
0
5547
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
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.