By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,294 Members | 2,517 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,294 IT Pros & Developers. It's quick & easy.

Unrecognized attribute 'xmlns'.

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.