Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 31st, 2006, 06:18 PM
Registered User
 
Join Date: Jan 2006
Location: Salt Lake City, UT, .
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.
  #2 (permalink)  
Old February 1st, 2006, 04:49 AM
Authorized User
 
Join Date: Dec 2003
Location: , , United Kingdom.
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

  #3 (permalink)  
Old February 2nd, 2006, 03:18 PM
Registered User
 
Join Date: Jan 2006
Location: Salt Lake City, UT, .
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.
  #4 (permalink)  
Old November 11th, 2006, 03:54 AM
Registered User
 
Join Date: Nov 2006
Location: kabul, kabul, Afghanistan.
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

  #5 (permalink)  
Old November 12th, 2006, 12:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Banbury, , United Kingdom.
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
  #6 (permalink)  
Old December 28th, 2006, 02:28 AM
Registered User
 
Join Date: Apr 2006
Location: Allen Park, MI, USA.
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)?

  #7 (permalink)  
Old December 28th, 2006, 09:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Banbury, , United Kingdom.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:13 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.