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
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...
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
Thanks! It works now.
Kai
"Steven Cheng[MSFT]" <stc...@online.microsoft.com> wrote in message
news:2U8y5gd7...@TK2MSFTNGXA02.phx.gbl...
Kai
"Juan T. Llibre" <nomail...@nowhere.com> wrote in message
news:ud7DroY7...@TK2MSFTNGP15.phx.gbl...
Thanks
kai
"Juan T. Llibre" <nomail...@nowhere.com> wrote in message
news:ud7DroY7...@TK2MSFTNGP15.phx.gbl...
Kai
"Steven Cheng[MSFT]" <stc...@online.microsoft.com> wrote in message
news:2U8y5gd7...@TK2MSFTNGXA02.phx.gbl...
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