Parser Error Message:
Only one <configSections > element allowed. It must be the first child
element of the root <configuratio n> element.
OK, fine, easy enough to fix, I just need to copy and paste this block to
where .NET wants it to be. But I can't help but think, why??? Doesn't this
insistense on ordinal placement run counter to the whole XML 'philosophy'? I
mean the node "/configuration/configSections" should be just as accessible
whether it is the first, last or in between other nodes, as long as it is a
direct child of "/configuration". So why this insistence that it be the
absolute first among its siblings?
- Joe Geretz - 2 2004
"Joseph Geretz" <jg*****@nospam .com> wrote in message
news:eu******** ******@TK2MSFTN GP14.phx.gbl... Parser Error Message: Only one <configSections > element allowed. It must be the first child element of the root <configuratio n> element.
OK, fine, easy enough to fix, I just need to copy and paste this block to where .NET wants it to be. But I can't help but think, why??? Doesn't this insistense on ordinal placement run counter to the whole XML 'philosophy'?
No. An XML schema can be as tight or loose as you like, but like with all
type systems, tighter is better, within reason.
For instance his requirement guarantees that I can read a configSection with
streaming XML reader by hiting the first element node and then skipping
forward to the desired section. Without a guarantee about the ordering I
would have to load the whole XML document into a DOM and run an XPath query
just to find a single the configSections
David
Thanks for pointing that out David. You're absolutely correct.
- Joe Geretz -
"David Browne" <davidbaxterbro wne no potted me**@hotmail.co m> wrote in
message news:%2******** **********@TK2M SFTNGP15.phx.gb l... "Joseph Geretz" <jg*****@nospam .com> wrote in message news:eu******** ******@TK2MSFTN GP14.phx.gbl... Parser Error Message: Only one <configSections > element allowed. It must be the first child element of the root <configuratio n> element.
OK, fine, easy enough to fix, I just need to copy and paste this block to where .NET wants it to be. But I can't help but think, why??? Doesn't this insistense on ordinal placement run counter to the whole XML 'philosophy'?
No. An XML schema can be as tight or loose as you like, but like with all type systems, tighter is better, within reason.
For instance his requirement guarantees that I can read a configSection with streaming XML reader by hiting the first element node and then skipping forward to the desired section. Without a guarantee about the ordering I would have to load the whole XML document into a DOM and run an XPath query just to find a single the configSections
David This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Faisal |
last post by:
I have a question regarding the "PublicKeyToken" attribute of the "<section>" tag in the web.config file. Pretty much most references have this value set to "b77a5c561934e089"; the same value as in the machine.config file
<configSections
<section name="sampleSection" type="System.Configuration.SingleTagSectionHandler, System,Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /
</configSections
My question is, does the...
|
by: anonieko |
last post by:
Add a reference to log4net.dll
1: In the APP.CONFIG write the following:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="log4net"
type="System.Configuration.IgnoreSectionHandler" />
</configSections>
|
by: Joseph Geretz |
last post by:
Parser Error Message:
Only one <configSections> element allowed. It must be the first child
element of the root <configuration> element.
OK, fine, easy enough to fix, I just need to copy and paste this block to
where .NET wants it to be. But I can't help but think, why??? Doesn't this
insistense on ordinal placement run counter to the whole XML 'philosophy'? I
mean the node "/configuration/configSections" should be just as accessible...
|
by: Joseph Geretz |
last post by:
Why isn't the ASP.NET runtime providing a valid reference for this object to
my WebService? I'm trying to use WSE and DIME to send attachments via Web
Service. I've provided a whole lot of information in the thread below:
DIME: Attachments.Add - Object reference not set to an instance of an
object.
Bu when all is said and done, the crux of the problem is that
ResponseSoapContext.Current = <undefined value> when I attempt to access it....
|
by: Vikram |
last post by:
I am using log4net in a vb.net console application. But its not working. I
have added congif setting in app.config file also
No error is generated but app. does not write to log file.
app.config file:
<?xml version="1.0" encoding="utf-8" ?>
| |
by: Rainer Queck |
last post by:
Hello NG,
Is it possible to share the settings of an application with a class
libreary?
In my case I have a application and a set of different reports (home made)
put into a class library.
The plan is to delivere different report.dlls with the main app.
But it is essentially importent, that the reports and the app use the same
settings.
|
by: Milsnips |
last post by:
Hi all.
i'm tryng to implement the Rewrite.NET url rewritining functionality into a
test project i've created, however i am hitting a problem at this line
(direct from the web example):
System.Collections.Specialized.NameValueCollection SectionIndex =
(System.Collections.Specialized.NameValueCollection)System.Configuration.ConfigurationSettings.GetConfig("Rewrite.NET/Index");
The value always returns me null, and just to check it was...
|
by: =?Utf-8?B?RXZl?= |
last post by:
I have the following sections defined in my app.config file:
<configSections>
<section name="1"
type="System.Configuration.DictionarySectionHandler" />
<section name="2"
type="System.Configuration.DictionarySectionHandler" />
<section name="3"
type="System.Configuration.DictionarySectionHandler" />
</configSections>
|
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...
|
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,...
|
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...
| |
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,...
|
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...
|
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...
|
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...
|
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();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |