Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unrecognized attribute 'xmlns'.

4 views
Skip to first unread message

kai

unread,
Nov 19, 2005, 8:50:00 PM11/19/05
to
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


Juan T. Llibre

unread,
Nov 19, 2005, 11:23:53 PM11/19/05
to
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" <kail...@earthlink.net> wrote in message
news:cDQff.2867$N45....@newsread1.news.atl.earthlink.net...

Steven Cheng[MSFT]

unread,
Nov 20, 2005, 8:42:08 AM11/20/05
to
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" <kail...@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: <cDQff.2867$N45....@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!newsfeed00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.dca.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.earthlink.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

kai

unread,
Nov 20, 2005, 9:14:35 AM11/20/05
to
Steven

Thanks! It works now.
Kai

"Steven Cheng[MSFT]" <stc...@online.microsoft.com> wrote in message
news:2U8y5gd7...@TK2MSFTNGXA02.phx.gbl...

kai

unread,
Nov 20, 2005, 9:15:47 AM11/20/05
to
Juan ,
Thanks.

Kai
"Juan T. Llibre" <nomail...@nowhere.com> wrote in message
news:ud7DroY7...@TK2MSFTNGP15.phx.gbl...

kai

unread,
Nov 20, 2005, 9:18:18 AM11/20/05
to
Juan,
After I setup IIS to run ASP.NET 2.0, it works. Before the default is 1.X.

Thanks

kai


"Juan T. Llibre" <nomail...@nowhere.com> wrote in message
news:ud7DroY7...@TK2MSFTNGP15.phx.gbl...

kai

unread,
Nov 20, 2005, 9:19:48 AM11/20/05
to
Steven,
Thanks for helping, after I setup IIS to run 2.0, it works.

Kai
"Steven Cheng[MSFT]" <stc...@online.microsoft.com> wrote in message
news:2U8y5gd7...@TK2MSFTNGXA02.phx.gbl...

Steven Cheng[MSFT]

unread,
Nov 20, 2005, 8:25:38 PM11/20/05
to
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" <kail...@earthlink.net>
| Newsgroups: microsoft.public.dotnet.framework.aspnet

| References: <cDQff.2867$N45....@newsread1.news.atl.earthlink.net>
<2U8y5gd7...@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%ff.758$aA2...@newsread2.news.atl.earthlink.net>
| 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!newsfeed00.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!newsread2.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

0 new messages