Search:
Namespaces
Discussions
.NET v1.1
Feedback
user.config
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngconfig' list
.
Bryan Andrews
-- Moved from [aspngarchitecture] to [aspngconfig] by Marcie Jones <
Click here to reveal e-mail address
> --
We are trying to use a user.config file to specify the dev dbase and am =
getting the following error:
Parser Error Message: The root element must match the name of the =
section referencing the file, 'appSettings'
Source Error:=20
Line 1: <?xml version=3D"1.0" encoding=3D"utf-8" ?>
Line 2: <configuration>
Line 3: <appSettings file=3D"user.config">
I am confiuguring the web.config as:
<configuration>
<appSettings file=3D"user.config">
and the user.config as:
<configuration>
<appSettings>
I also tried the user.config like this:
<configuration>
<appSettings file=3D"user.config">
Any help is appreciated as it seems to be exactly as recommended in the =
Team Dev doc.
Thanks!
Reply to this message...
Russ McClelland
Doesn't the appSettings tag have a name element and a value element
similar to
<appSetting name=3D"file" value=3D"user.config">
Remember too that XML is case sensitive, so make sure you put the
correct casing on the element names and attribute names.
-----Original Message-----
From: Bryan Andrews [mailto:
Click here to reveal e-mail address
]=20
Sent: Friday, July 19, 2002 8:02 PM
To: aspngconfig
Subject: [aspngconfig] user.config
-- Moved from [aspngarchitecture] to [aspngconfig] by Marcie Jones
<
Click here to reveal e-mail address
> --
We are trying to use a user.config file to specify the dev dbase and am
=3D getting the following error:
Parser Error Message: The root element must match the name of the =3D
section referencing the file, 'appSettings'
Source Error:=3D20
Line 1: <?xml version=3D3D"1.0" encoding=3D3D"utf-8" ?>
Line 2: <configuration>
Line 3: <appSettings file=3D3D"user.config">
I am confiuguring the web.config as:
<configuration>
<appSettings file=3D3D"user.config">
and the user.config as:
<configuration>
<appSettings>
I also tried the user.config like this:
<configuration>
<appSettings file=3D3D"user.config">
Any help is appreciated as it seems to be exactly as recommended in the
=3D Team Dev doc.
Thanks!
| [aspngconfig] member
Click here to reveal e-mail address
=3D YOUR ID=20
|
http://www.asplists.com/asplists/aspngconfig.asp
=3D JOIN/QUIT=20
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
Russ McClelland
My mistake, its key and value attributes:
<appSetting key=3D"file" value=3D"user.config">
-----Original Message-----
From: Russ McClelland=20
Sent: Saturday, July 20, 2002 10:52 AM
To: aspngconfig
Subject: [aspngconfig] RE: user.config
Doesn't the appSettings tag have a name element and a value element
similar to
<appSetting name=3D"file" value=3D"user.config">
Remember too that XML is case sensitive, so make sure you put the
correct casing on the element names and attribute names.
-----Original Message-----
From: Bryan Andrews [mailto:
Click here to reveal e-mail address
]=20
Sent: Friday, July 19, 2002 8:02 PM
To: aspngconfig
Subject: [aspngconfig] user.config
-- Moved from [aspngarchitecture] to [aspngconfig] by Marcie Jones
<
Click here to reveal e-mail address
> --
We are trying to use a user.config file to specify the dev dbase and am
=3D getting the following error:
Parser Error Message: The root element must match the name of the =3D
section referencing the file, 'appSettings'
Source Error:=3D20
Line 1: <?xml version=3D3D"1.0" encoding=3D3D"utf-8" ?>
Line 2: <configuration>
Line 3: <appSettings file=3D3D"user.config">
I am confiuguring the web.config as:
<configuration>
<appSettings file=3D3D"user.config">
and the user.config as:
<configuration>
<appSettings>
I also tried the user.config like this:
<configuration>
<appSettings file=3D3D"user.config">
Any help is appreciated as it seems to be exactly as recommended in the
=3D Team Dev doc.
Thanks!
| [aspngconfig] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngconfig.asp
=3D JOIN/QUIT=20
|
http://www.asplists.com/search
=3D SEARCH Archives
| [aspngconfig] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngconfig.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
Bryan Andrews
Parser Error Message: Unrecognized attribute 'key'
Source Error:=20
Line 1: <?xml version=3D"1.0" encoding=3D"utf-8" ?>
Line 2: <configuration>
Line 3: <appSettings key=3D"file" value=3D"user.config">
This is what I get when trying this.=20
This is funny because the MS Team Dev doc does not say to do this yet I =
can't get it to work the prescribed method either.
-----Original Message-----
From: Russ McClelland [mailto:
Click here to reveal e-mail address
]=20
Sent: Saturday, July 20, 2002 8:48 PM
To: aspngconfig
Subject: [aspngconfig] RE: user.config
My mistake, its key and value attributes:
<appSetting key=3D"file" value=3D"user.config">
-----Original Message-----
From: Russ McClelland=20
Sent: Saturday, July 20, 2002 10:52 AM
To: aspngconfig
Subject: [aspngconfig] RE: user.config
Doesn't the appSettings tag have a name element and a value element
similar to
<appSetting name=3D"file" value=3D"user.config">
Remember too that XML is case sensitive, so make sure you put the
correct casing on the element names and attribute names.
-----Original Message-----
From: Bryan Andrews [mailto:
Click here to reveal e-mail address
]=20
Sent: Friday, July 19, 2002 8:02 PM
To: aspngconfig
Subject: [aspngconfig] user.config
-- Moved from [aspngarchitecture] to [aspngconfig] by Marcie Jones
<
Click here to reveal e-mail address
> --
We are trying to use a user.config file to specify the dev dbase and am
=3D getting the following error:
Parser Error Message: The root element must match the name of the =3D
section referencing the file, 'appSettings'
Source Error:=3D20
Line 1: <?xml version=3D3D"1.0" encoding=3D3D"utf-8" ?>
Line 2: <configuration>
Line 3: <appSettings file=3D3D"user.config">
I am confiuguring the web.config as:
<configuration>
<appSettings file=3D3D"user.config">
and the user.config as:
<configuration>
<appSettings>
I also tried the user.config like this:
<configuration>
<appSettings file=3D3D"user.config">
Any help is appreciated as it seems to be exactly as recommended in the
=3D Team Dev doc.
Thanks!
| [aspngconfig] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngconfig.asp
=3D JOIN/QUIT=20
|
http://www.asplists.com/search
=3D SEARCH Archives
| [aspngconfig] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngconfig.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
| [aspngconfig] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngconfig.asp
=3D JOIN/QUIT
|
http://www.asplists.com/search
=3D SEARCH Archives
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com