Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 31st, 2006, 06:18 PM
Registered User
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 4: "Could not find schema inf ... "

Trying to run Ch 4 exercises, I received 50 error messages related to "Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration'". After the colon, the message varied with :configuration, :appSettings, :connectionStrings and several others. In web.config, I have this line - <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">.

Any idea why I'm getting this error? I've been running examples all day and haven't had any problems.
 
Old February 1st, 2006, 04:49 AM
Authorized User
 
Join Date: Dec 2003
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
Default

There are two possible problems here:

1. You're running the samples via IIS and havn't configured the IIS site to use ASP.nET 2.0 (it defaults to 1.1). If you're just pressing F5 to run samples and using the built-in web server, then this isn't the issue.

2. There is a known problem with intellisense in the web configuration file. Make sure web.config doesn't have any attributes on it's <configuation> element. That is it should appear just as <configuration>.

Dave

 
Old February 2nd, 2006, 03:18 PM
Registered User
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, Dave. I changed the configuration element to just <configuration> and it works fine.
 
Old November 11th, 2006, 03:54 AM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Dave,
i removed the code from configuration tag and all error are removed but now its giving me an error of Parser Error Message: Unrecognized configuration section 'connectionStrings' and i am using IIS6.0 but its not configure in v2.0 and i have designed my application in vs2005 any help will be highly appreciated.
thanks,
Habib
Afghanistan

 
Old November 12th, 2006, 12:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

Hi Habib,

Your problem then is that your application is not running ASP.NET 2.0. Only v2.0 recognizes the <connectionStrings> section of web.config. v1.x does note and so throws an error.

Dan

Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive
 
Old December 28th, 2006, 02:28 AM
Registered User
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ddawson59 Send a message via Yahoo to ddawson59
Default

I just wondered why does the code downloaded containg the xmlns attribute in the <configuration> tag? Is it not needed or is there an error in the application (VWD)?

 
Old December 28th, 2006, 09:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

It's 50/50. According to Microsoft, the xmlns should be there to make it valid xml. It's just that the bug in VWD \ VS2005 prevents intellisense from working if it is there. Which is annoying as VWD will add it in from tiem to tiem to make it 'correct'. Easier to remove it and have intellisense working.

Hopefully this is fixe din service pack 1 for vs2005 \ vwd.

Dan

Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive





Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't find User Id and password for Chapter 6 jellyjune BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 September 21st, 2007 02:39 PM
app.config vs2005 could not find schema informatio Neilgott BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 May 4th, 2006 11:38 AM
Chapter 13 - Storing Inf in a Database phudong3da Dreamweaver (all versions) 1 April 22nd, 2005 01:00 AM
multiple web-inf folder Nia Servlets 0 February 17th, 2005 12:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.