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: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 28th, 2006, 09:01 PM
Registered User
 
Join Date: Jun 2006
Location: Savannah, GA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Could not run samples

I tried 2 chapters - 4 and 7, and got the same type of error:

Message 1 Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration'. C:\Web\SurveyEngine\web.config 11 2 C:\Web\SurveyEngine
Any ideas?

Reply With Quote
  #2 (permalink)  
Old June 29th, 2006, 12:30 AM
Imar's Avatar
Wrox Author
Points: 67,271, Level: 100
Points: 67,271, Level: 100 Points: 67,271, Level: 100 Points: 67,271, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,227
Thanks: 66
Thanked 1,414 Times in 1,394 Posts
Default

Hi there,

This sounds like you forgot to configure IIS to use ASP.NET 2.

To do this, open up the IIS Manager, locate your site or virtual directory, right click it and choose Properties. On the ASP.NET 2 tab, make sure that V2 is selected....

HtH,

Imar
Reply With Quote
  #3 (permalink)  
Old August 10th, 2007, 02:19 PM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Help!

I got this error too:

Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration'.

The answer seems pertinent, that the IIS is not using .net v2, but I see no IIS Manager anywhere in order to change that. I am using XP Professional. I am sure IIS is on this machine somewhere but I know fo no "IIS Manager" front end.

HELP! I am most frust-er-ated.

thanks
lynn

Reply With Quote
  #4 (permalink)  
Old August 10th, 2007, 03:08 PM
Imar's Avatar
Wrox Author
Points: 67,271, Level: 100
Points: 67,271, Level: 100 Points: 67,271, Level: 100 Points: 67,271, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,227
Thanks: 66
Thanked 1,414 Times in 1,394 Posts
Default

Hi there,

Click Start, then Run and then enter inetmgr and hit enter. That should bring up the IIS Manager.

Alternatively, you should find a link to it on the Administrative Tools item of the Control Panel.

Hope this helps,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
  #5 (permalink)  
Old August 11th, 2007, 09:51 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar

I have read through some of your posts, and you have been very helpful to others, and thanks for your response to this. Hopefully my questions aren't too dumb! :)

I tried what you said - I had already looked at the admin tools and it isn't there! I then tried inetmgr as you suggested, from Run, and it says it can't be found. This is most confusing to me since I have a web app that I am trying to develop and it does actually run, at least in debug mode within the development environment. FYI I am using the MS Visual Web Developer 2005 Express - freeware, as that is what my current budget will allow. :)

When my web app is running, I see this on my taskbar:

asp.net development server - port 2565

So maybe it doesn't use IIS? But I thought a local IIS was installed with XP Pro? Certainly I have the .Net framework. I see this in my admin tools window: Microsoft .NET Framework 2.0 Configuration

confused.

Any help appreciated. I am out of my depth here. I have been a programmer in past but am out of touch.

Reply With Quote
  #6 (permalink)  
Old August 11th, 2007, 10:00 AM
Imar's Avatar
Wrox Author
Points: 67,271, Level: 100
Points: 67,271, Level: 100 Points: 67,271, Level: 100 Points: 67,271, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,227
Thanks: 66
Thanked 1,414 Times in 1,394 Posts
Default

Hi sarka,

IIS does indeed come with Windows XP, but it's not installed by default. When inetmgr gives you a "not found" message, there's a fair chance it's not installed. To fix that you need to do two things: install IIS and then reconfigure the .NET Framework so it registers itself with IIS.

1. Open the Add/Remove programs section of the control panel and choose Add / Remove Windows Components. From the dialog that follow, install IIS. You may need to reboot.

2. Open up a command prompt and navigate to:

%windir%\Microsoft.NET\Framework\v2.0.50727

Type the following command at the command prompt:

aspnet_regiis.exe -i

Wait a bit while the tool registers ASP.NET with IIS

From here, things should work as expected when it comes to IIS.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
  #7 (permalink)  
Old August 11th, 2007, 10:48 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar

I did what you said and the original error disappeared. Thank you! But...now I see this:

Could not find schema information for the element 'theBeerHouse'

Below is a snippet from the pertinent web.config

<?xml version="1.0"?>
<configuration >
    <configSections>
        <section name="theBeerHouse" type="MB.TheBeerHouse.TheBeerHouseSection, __code"/>
    </configSections>

   <theBeerHouse defaultConnectionStringName="LocalSqlServer">
      <contactForm mailTo="thebeerhouse@wrox.com"/>
      <articles pageSize="10" />
      <polls archiveIsPublic="true" votingLockByIP="false" />
      <newsletters fromEmail="thebeerhouse@wrox.com" fromDisplayName="TheBeerHouse" />
      <forums threadsPageSize="8" hotThreadPosts="10" bronzePosterPosts="10" silverPosterPosts="20" goldPosterPosts="50" />
      <store sandboxMode="true" businessEmail="thebeerhouse@wrox.com" />
   </theBeerHouse>

   <connectionStrings>
      ...

Reply With Quote
  #8 (permalink)  
Old August 11th, 2007, 10:51 AM
Imar's Avatar
Wrox Author
Points: 67,271, Level: 100
Points: 67,271, Level: 100 Points: 67,271, Level: 100 Points: 67,271, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,227
Thanks: 66
Thanked 1,414 Times in 1,394 Posts
Default

I don't know much about the beerhouse or its setup, so I suggest you post this in the book's forum.

Looks like the run-time can't find the assembly or code files for the application that defines MB.TheBeerHouse.TheBeerHouseSection

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
  #9 (permalink)  
Old August 11th, 2007, 11:06 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar

Will do and thanks for your help to this point - you got me started. BTW I do have MS VS 2005 installed but I can't get past this error? While I have your attention... you seem knowledgeable so maybe you know about this:

"The application for ...is not installed." I don't know what it thinks is not installed? This error occurs for several web apps that I can open and run just fine in the freeware Web Developer app but I understand it is limited and I am better in VS 2005.

I wouldn't be such a pest if I knew where to go for some better general overview info. Somehow you never see these install / compatibility issues covered in books.

Anyway thanks for everything!

Reply With Quote
  #10 (permalink)  
Old August 11th, 2007, 11:15 AM
Imar's Avatar
Wrox Author
Points: 67,271, Level: 100
Points: 67,271, Level: 100 Points: 67,271, Level: 100 Points: 67,271, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,227
Thanks: 66
Thanked 1,414 Times in 1,394 Posts
Default

The error can come from different sources. For example, when you try to open a .csproj file (C# project) without C# support installed, you get this error.

Maybe you're opening a project that uses the Web Application Project? if that's the case, make sure you install Service Pack 1 for VS 2005 as that also installs WAP.

If that doesn't help, I don't know the solution. In "The application for ...is not" the reason for ... is crucial to determine what is not installed.

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
Reply


Thread Tools
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
Code Samples qjay BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 17 July 13th, 2009 04:10 AM
Need samples mindserve VB.NET 2002/2003 Basics 0 August 5th, 2007 08:24 AM
Can't get any of the samples to run... cwerth BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 June 16th, 2006 07:26 PM
Samples? dugi Wrox Book Feedback 1 November 5th, 2003 10:02 AM



All times are GMT -4. The time now is 09:40 PM.


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