473,651 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<system.diagnos tics> causing a Configuration Error while setting Trace Listeners.

Hi,

I am tring to use Trace Listener in asp.net 1.1 application as mentoned
here[1]. But i am getting the following error,
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 99: </system.web>
Line 100:
Line 101: <system.diagnos tics>
Line 102: <trace autoflush="true " indentsize="4">
Line 103: <listeners>

the error comes only at the first request, the subsequent request is not
causing this error, but the file also not created.

This is how my web.config looks now.
<configuratio n>
<system.diagnos tics>
<trace autoflush="true " indentsize="4">
<listeners>
<add name="LogFileLi stener"
type="System.Di agnostics.TextW riterTraceListe ner"
initializeData= "c:\MyTrace.txt " />
<remove type="System.Di agnostics.Defau ltTraceListener " />
</listeners>
</trace>
</system.diagnost ics>
</configuration>

I removed other elements for simplicity.

[1] http://blogs.technet.com/stefan_goss...19/405146.aspx

Thanks in advance.

Murugan G.
Jan 5 '07 #1
0 1642

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

Similar topics

1
19020
by: Tim Heuer | last post by:
Is there a way to specify proxy logon information if you use the <system.net> <proxyAddress> configuration methods for the web.config? -th
2
3622
by: S.K. Dutta | last post by:
Hi! I am having a problem that I do not have any clue on what to do. I have tries a few obvious things... <system.diagnostics> in the main web.config file is giving configuration error on a particular machine that has both version of vs.net installed (v1.0.3705 and v1.1.4322).
4
15628
by: Jiho Han | last post by:
I have the following defined in web.config under <configuration> node: <system.diagnostics> <switches> <add name="MainSwitch" value="4"/> </switches>
1
2390
by: aa | last post by:
Why when I trying to use trim or replace method of the string datatype variable, i am getinig the error System Error &H80070057&
2
1805
by: I am Sam | last post by:
Can someone tell me what is wrong with this web.config file? Whenever I try to open a file in the protected directory "Administration" I get an error message indicating that the <system.web> Element is not recognized or something to that effect. Any suggestions or help would be greatly appreciated. I have attached the web.config file below. Thank you. ************************************************************ <?xml version="1.0"...
3
5258
by: MikeM | last post by:
I've been trying to locate some property or method that will allow programmatic access to the "loginUrl" attribute in the web.config file in the <system.web> -> <authentication> element when the config file is set up for Forms Authentication. I know certain system.web settings get mapped to various properties/methods during runtime (e.g. <sessionState>'s timeout attribute maps to the Session.Timeout property at runtime). You can easily...
3
2087
by: Varangian | last post by:
Hello, there I have a problem with regards to System.Collections.Generic.List<T> I need to pass a class with implements an interface - TestClass : IPerson I put this class in a List<TestClass> = new List<TestClass>(); then I pass this List<TestClass> to a function which takes an argument List<IPerson> person
2
4317
by: Bern McCarty | last post by:
In the old MEC++ syntax I can do this: // compile in VS 2005 shell with cl -clr:oldsyntax -LD ArrayCopyOldSyntax.cpp #using <mscorlib.dll> public __gc class CopyTest { private: System::UInt32 m_indeces __gc; public: CopyTest(unsigned int indeces __nogc, unsigned int arrayLength)
5
1932
by: Nathan Sokalski | last post by:
My Web.config file contains the following section to register some of my UserControls: <pages> <controls> <add tagPrefix="NATE" tagName="Banner" src="~/Banner.ascx"/> <add tagPrefix="NATE" tagName="Navigation" src="~/Navigation.ascx"/> </controls> </pages>
0
8352
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
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
8802
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
8697
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
8465
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
7297
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
4144
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
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1909
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.