473,395 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Unrecognized attribute 'xmlns'.

kai
Hi,

I have XP Pro and VS2005 final version. I have been running some examples
from a MS Press books (ASP.NET 2.0 Core Reference and), I run into this
problems:

Parser Error Message: Unrecognized attribute 'xmlns'.

Source Error:

Line 1: <?xml version="1.0"?>
Line 2: <configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">


Please help to to fix the problems, it is part of Web.Config files
Thanks

Kai
Nov 20 '05 #1
7 11428
re:
Parser Error Message: Unrecognized attribute 'xmlns'.
Trim this line :

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

down to :

<configuration>
It's a bug...


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"kai" <ka******@earthlink.net> wrote in message
news:cD*****************@newsread1.news.atl.earthl ink.net... Hi,

I have XP Pro and VS2005 final version. I have been running some examples from a MS
Press books (ASP.NET 2.0 Core Reference and), I run into this problems:

Parser Error Message: Unrecognized attribute 'xmlns'.

Source Error:

Line 1: <?xml version="1.0"?>
Line 2: <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">


Please help to to fix the problems, it is part of Web.Config files
Thanks

Kai

Nov 20 '05 #2
Hi Kai,

As Juan has mentioned, you can remove the
"xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"

namespace declaration. However, based on my researh, the ASP.NET 2.0
runtime can correctly recognize the

xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"

schema namespace. So I think the actual problem should be the IIS virtual
directory's ASP.NET extension mapping. Would print out the full exception
info here? Is the current ASP.NET runtime version outputed in the exception
message? You can check the IIS to see whether the application's vritual dir
is configured as ASP.NET 2.0. If it's still under asp.net 1.1, you can
run

aspnet_regiis -i

under the VS.NET 2005 command console or from the

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "kai" <ka******@earthlink.net>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Unrecognized attribute 'xmlns'.
| Lines: 29
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <cD*****************@newsread1.news.atl.earthlink. net>
| Date: Sun, 20 Nov 2005 01:50:00 GMT
| NNTP-Posting-Host: 66.32.86.150
| X-Complaints-To: ab***@earthlink.net
| X-Trace: newsread1.news.atl.earthlink.net 1132451400 66.32.86.150 (Sat,
19 Nov 2005 17:50:00 PST)
| NNTP-Posting-Date: Sat, 19 Nov 2005 17:50:00 PST
| Organization: EarthLink Inc. -- http://www.EarthLink.net
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.d ca.giganews.com!nntp.gigan
ews.com!nx02.iad01.newshosting.com!newshosting.com !207.69.154.102.MISMATCH!e
lnk-atl-nf2!newsfeed.earthlink.net!stamper.news.atl.earthl ink.net!newsread1.
news.atl.earthlink.net.POSTED!a96f5a29!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:359539
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I have XP Pro and VS2005 final version. I have been running some examples
| from a MS Press books (ASP.NET 2.0 Core Reference and), I run into this
| problems:
|
|
|
| Parser Error Message: Unrecognized attribute 'xmlns'.
|
| Source Error:
|
|
|
| Line 1: <?xml version="1.0"?>
| Line 2: <configuration
| xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
|
|
|
|
| Please help to to fix the problems, it is part of Web.Config files
|
|
| Thanks
|
| Kai
|
|
|

Nov 20 '05 #3
kai
Steven

Thanks! It works now.
Kai

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:2U**************@TK2MSFTNGXA02.phx.gbl...
Hi Kai,

As Juan has mentioned, you can remove the
"xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"

namespace declaration. However, based on my researh, the ASP.NET 2.0
runtime can correctly recognize the

xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"

schema namespace. So I think the actual problem should be the IIS virtual
directory's ASP.NET extension mapping. Would print out the full exception
info here? Is the current ASP.NET runtime version outputed in the
exception
message? You can check the IIS to see whether the application's vritual
dir
is configured as ASP.NET 2.0. If it's still under asp.net 1.1, you can
run

aspnet_regiis -i

under the VS.NET 2005 command console or from the

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "kai" <ka******@earthlink.net>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Unrecognized attribute 'xmlns'.
| Lines: 29
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <cD*****************@newsread1.news.atl.earthlink. net>
| Date: Sun, 20 Nov 2005 01:50:00 GMT
| NNTP-Posting-Host: 66.32.86.150
| X-Complaints-To: ab***@earthlink.net
| X-Trace: newsread1.news.atl.earthlink.net 1132451400 66.32.86.150 (Sat,
19 Nov 2005 17:50:00 PST)
| NNTP-Posting-Date: Sat, 19 Nov 2005 17:50:00 PST
| Organization: EarthLink Inc. -- http://www.EarthLink.net
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.d ca.giganews.com!nntp.gigan
ews.com!nx02.iad01.newshosting.com!newshosting.com !207.69.154.102.MISMATCH!e
lnk-atl-nf2!newsfeed.earthlink.net!stamper.news.atl.earthl ink.net!newsread1.
news.atl.earthlink.net.POSTED!a96f5a29!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:359539
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I have XP Pro and VS2005 final version. I have been running some
examples
| from a MS Press books (ASP.NET 2.0 Core Reference and), I run into this
| problems:
|
|
|
| Parser Error Message: Unrecognized attribute 'xmlns'.
|
| Source Error:
|
|
|
| Line 1: <?xml version="1.0"?>
| Line 2: <configuration
| xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
|
|
|
|
| Please help to to fix the problems, it is part of Web.Config files
|
|
| Thanks
|
| Kai
|
|
|

Nov 20 '05 #4
kai
Juan ,
Thanks.

Kai
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ud**************@TK2MSFTNGP15.phx.gbl...
re:
Parser Error Message: Unrecognized attribute 'xmlns'.


Trim this line :

<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

down to :

<configuration>
It's a bug...


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"kai" <ka******@earthlink.net> wrote in message
news:cD*****************@newsread1.news.atl.earthl ink.net...
Hi,

I have XP Pro and VS2005 final version. I have been running some examples
from a MS Press books (ASP.NET 2.0 Core Reference and), I run into this
problems:

Parser Error Message: Unrecognized attribute 'xmlns'.

Source Error:

Line 1: <?xml version="1.0"?>
Line 2: <configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">


Please help to to fix the problems, it is part of Web.Config files
Thanks

Kai


Nov 20 '05 #5
kai
Juan,
After I setup IIS to run ASP.NET 2.0, it works. Before the default is 1.X.

Thanks

kai
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ud**************@TK2MSFTNGP15.phx.gbl...
re:
Parser Error Message: Unrecognized attribute 'xmlns'.


Trim this line :

<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

down to :

<configuration>
It's a bug...


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"kai" <ka******@earthlink.net> wrote in message
news:cD*****************@newsread1.news.atl.earthl ink.net...
Hi,

I have XP Pro and VS2005 final version. I have been running some examples
from a MS Press books (ASP.NET 2.0 Core Reference and), I run into this
problems:

Parser Error Message: Unrecognized attribute 'xmlns'.

Source Error:

Line 1: <?xml version="1.0"?>
Line 2: <configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">


Please help to to fix the problems, it is part of Web.Config files
Thanks

Kai


Nov 20 '05 #6
kai
Steven,
Thanks for helping, after I setup IIS to run 2.0, it works.

Kai
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:2U**************@TK2MSFTNGXA02.phx.gbl...
Hi Kai,

As Juan has mentioned, you can remove the
"xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"

namespace declaration. However, based on my researh, the ASP.NET 2.0
runtime can correctly recognize the

xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"

schema namespace. So I think the actual problem should be the IIS virtual
directory's ASP.NET extension mapping. Would print out the full exception
info here? Is the current ASP.NET runtime version outputed in the
exception
message? You can check the IIS to see whether the application's vritual
dir
is configured as ASP.NET 2.0. If it's still under asp.net 1.1, you can
run

aspnet_regiis -i

under the VS.NET 2005 command console or from the

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "kai" <ka******@earthlink.net>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Unrecognized attribute 'xmlns'.
| Lines: 29
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <cD*****************@newsread1.news.atl.earthlink. net>
| Date: Sun, 20 Nov 2005 01:50:00 GMT
| NNTP-Posting-Host: 66.32.86.150
| X-Complaints-To: ab***@earthlink.net
| X-Trace: newsread1.news.atl.earthlink.net 1132451400 66.32.86.150 (Sat,
19 Nov 2005 17:50:00 PST)
| NNTP-Posting-Date: Sat, 19 Nov 2005 17:50:00 PST
| Organization: EarthLink Inc. -- http://www.EarthLink.net
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.d ca.giganews.com!nntp.gigan
ews.com!nx02.iad01.newshosting.com!newshosting.com !207.69.154.102.MISMATCH!e
lnk-atl-nf2!newsfeed.earthlink.net!stamper.news.atl.earthl ink.net!newsread1.
news.atl.earthlink.net.POSTED!a96f5a29!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:359539
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I have XP Pro and VS2005 final version. I have been running some
examples
| from a MS Press books (ASP.NET 2.0 Core Reference and), I run into this
| problems:
|
|
|
| Parser Error Message: Unrecognized attribute 'xmlns'.
|
| Source Error:
|
|
|
| Line 1: <?xml version="1.0"?>
| Line 2: <configuration
| xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
|
|
|
|
| Please help to to fix the problems, it is part of Web.Config files
|
|
| Thanks
|
| Kai
|
|
|

Nov 20 '05 #7
You're welcome Kai,

Good luck!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "kai" <ka******@earthlink.net>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| References: <cD*****************@newsread1.news.atl.earthlink. net>
<2U**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Unrecognized attribute 'xmlns'.
| Lines: 108
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <fx***************@newsread2.news.atl.earthlink.ne t>
| Date: Sun, 20 Nov 2005 14:14:35 GMT
| NNTP-Posting-Host: 66.32.86.150
| X-Complaints-To: ab***@earthlink.net
| X-Trace: newsread2.news.atl.earthlink.net 1132496075 66.32.86.150 (Sun,
20 Nov 2005 06:14:35 PST)
| NNTP-Posting-Date: Sun, 20 Nov 2005 06:14:35 PST
| Organization: EarthLink Inc. -- http://www.EarthLink.net
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!elnk-atl-nf1!newsfeed.
earthlink.net!stamper.news.atl.earthlink.net!newsr ead2.news.atl.earthlink.ne
t.POSTED!a96f5a29!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:359603
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Steven
|
| Thanks! It works now.
| Kai
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:2U**************@TK2MSFTNGXA02.phx.gbl...
| > Hi Kai,
| >
| > As Juan has mentioned, you can remove the
| > "xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"
| >
| > namespace declaration. However, based on my researh, the ASP.NET 2.0
| > runtime can correctly recognize the
| >
| > xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"
| >
| > schema namespace. So I think the actual problem should be the IIS
virtual
| > directory's ASP.NET extension mapping. Would print out the full
exception
| > info here? Is the current ASP.NET runtime version outputed in the
| > exception
| > message? You can check the IIS to see whether the application's vritual
| > dir
| > is configured as ASP.NET 2.0. If it's still under asp.net 1.1, you can
| > run
| >
| > aspnet_regiis -i
| >
| > under the VS.NET 2005 command console or from the
| >
| > C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
| >
| > Hope helps. Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| > --------------------
| > | From: "kai" <ka******@earthlink.net>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | Subject: Unrecognized attribute 'xmlns'.
| > | Lines: 29
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <cD*****************@newsread1.news.atl.earthlink. net>
| > | Date: Sun, 20 Nov 2005 01:50:00 GMT
| > | NNTP-Posting-Host: 66.32.86.150
| > | X-Complaints-To: ab***@earthlink.net
| > | X-Trace: newsread1.news.atl.earthlink.net 1132451400 66.32.86.150
(Sat,
| > 19 Nov 2005 17:50:00 PST)
| > | NNTP-Posting-Date: Sat, 19 Nov 2005 17:50:00 PST
| > | Organization: EarthLink Inc. -- http://www.EarthLink.net
| > | Path:
| >
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
| >
ne.de!border2.nntp.dca.giganews.com!border1.nntp.d ca.giganews.com!nntp.gigan
| >
ews.com!nx02.iad01.newshosting.com!newshosting.com !207.69.154.102.MISMATCH!e
| >
lnk-atl-nf2!newsfeed.earthlink.net!stamper.news.atl.earthl ink.net!newsread1.
| > news.atl.earthlink.net.POSTED!a96f5a29!not-for-mail
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:359539
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Hi,
| > |
| > | I have XP Pro and VS2005 final version. I have been running some
| > examples
| > | from a MS Press books (ASP.NET 2.0 Core Reference and), I run into
this
| > | problems:
| > |
| > |
| > |
| > | Parser Error Message: Unrecognized attribute 'xmlns'.
| > |
| > | Source Error:
| > |
| > |
| > |
| > | Line 1: <?xml version="1.0"?>
| > | Line 2: <configuration
| > | xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
| > |
| > |
| > |
| > |
| > | Please help to to fix the problems, it is part of Web.Config files
| > |
| > |
| > | Thanks
| > |
| > | Kai
| > |
| > |
| > |
| >
|
|
|

Nov 21 '05 #8

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

Similar topics

1
by: John | last post by:
I have an input document that contains a large base64 encoded document. This document also declares a schema location in the root element. I want to write an XSL stylesheet that makes an exact...
0
by: Carl | last post by:
I want to create a generic xslt that would take xml input like: ########################################################################## <?xml version="1.0" encoding="utf-8" ?>...
0
by: Carl | last post by:
Hi, I have found a way to map attributes (columns) to column headings. But this runs really slow. Is there a way to improve it? Thanks, Carl <?xml version="1.0" encoding="utf-8" ?>...
1
by: j erickson | last post by:
with the following xsl and xml file, the display of the gif file with the <image/url> tag works. However, the gif file in the <description> tag using the name attribute "src" won't make the correct...
4
by: Lénaïc Huard | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've some namespace problems when defining default values for attributes. My problem seems to come from the fact that the attributes are...
1
by: AP | last post by:
Hi, I'm getting the following error trying to validate an xml document against a schema: The 'xsi:noNameSpaceSchemaLocation' attribute is not declared My xml file looks like this: <?xml...
3
by: Peter Seif | last post by:
I have a PC that has windows 2000 Server ,Microsoft .Net Framework 1.0 installed First time I tried to create a web application and debug it i had the error "unable to debub ..." so i changed the...
6
by: john1001 | last post by:
I get the error Unrecognized attribute 'xmlns'. if I try to run an app created in vis web developer 2005 after using the copy function. I have seen other posts which say this is caused by IIS...
9
by: Mark Olbert | last post by:
I'm trying to serialize (using XmlSerializer.Serialize) a class that I generated from an XSD schema using XSD.EXE /c. The problem I'm running into is that the root element needs to be unqualified,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...
0
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...

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.