Unrecognized attribute 'xmlns'.

K

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
 
S

Steven Cheng[MSFT]

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" <[email protected]>
| 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: <[email protected]>
| Date: Sun, 20 Nov 2005 01:50:00 GMT
| NNTP-Posting-Host: 66.32.86.150
| X-Complaints-To: (e-mail address removed)
| 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
|
| 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
|
|
|
 
K

kai

Steven

Thanks! It works now.
Kai

Steven Cheng said:
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" <[email protected]>
| 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: <[email protected]>
| Date: Sun, 20 Nov 2005 01:50:00 GMT
| NNTP-Posting-Host: 66.32.86.150
| X-Complaints-To: (e-mail address removed)
| 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
|
| 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
|
|
|
 
K

kai

Juan,
After I setup IIS to run ASP.NET 2.0, it works. Before the default is 1.X.

Thanks

kai
 
S

Steven Cheng[MSFT]

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" <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| References: <[email protected]>
<[email protected]>
| 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%[email protected]>
| Date: Sun, 20 Nov 2005 14:14:35 GMT
| NNTP-Posting-Host: 66.32.86.150
| X-Complaints-To: (e-mail address removed)
| 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
|
| Steven
|
| Thanks! It works now.
| Kai
|
| | > 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" <[email protected]>
| > | 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: <[email protected]>
| > | Date: Sun, 20 Nov 2005 01:50:00 GMT
| > | NNTP-Posting-Host: 66.32.86.150
| > | X-Complaints-To: (e-mail address removed)
| > | 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
| > |
| > | 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
| > |
| > |
| > |
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top