Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| 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 February 2nd, 2006, 12:29 AM
rat rat is offline
Authorized User
Join Date: Jan 2006
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to rat
Default chapter 3.0 try it out page 74

when i am trying to add server controls in design view as per given in book and debugging the page it gives me the error
Error 70 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\Documents and Settings\Chitra\BEGASNET2\chapters\Begin\Begin\Cha pter03\WroxUnited\web.config 41

what does it mean ?

  #2 (permalink)  
Old February 2nd, 2006, 01:32 PM
Friend of Wrox
Join Date: Apr 2005
Location: Fort Walton Beach, FL, USA.
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts


You need to turn to Appendix B of the book and follow the procedure there
to add the app name in IIS in the Virtual Directory. I had the same problem but
was able to fix it.

You may also find that you have to add certain maintenance to SQL before the
tool to insert into the virtual directory is installed on your machine. (There
are previous forum articles about that, from one of the book's authors.)
This is a pretty convoluted mess that readers have to go thru to get up and running.


  #3 (permalink)  
Old February 6th, 2006, 12:50 AM
Registered User
Join Date: Feb 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

I am having this problem now too. I am using the Cassini server. I was not having any problems with anything until Chapter 3. Now, nothing works. Every page is throwing errors.

allowDefinition='MachineToApplication' beyond application level

to be exact.

I got through Chapter 2 with no problems. The problems started on page 88, the try it out for the SiteMapPath.

Thanks in advance for any help.
Rob in Tampa

  #4 (permalink)  
Old February 6th, 2006, 04:43 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

Maybe this post helps??


Imar Spaanjaars
Everyone is unique, except for me.
  #5 (permalink)  
Old April 20th, 2006, 11:04 AM
Registered User
Join Date: Apr 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I had this same problem "allowDefinition='MachineToApplication' beyond application level" and after a lot of experimentation and research on the net I believe I have found the problem. I have since seen several posts to fix this problem. However, I thought I would write a quick and easy solution, with little confusion.
The problem has to do with having two Web.config pages. The book instructs you to start a new website at c:\BegASPNET2\Chapters\Start\Chapter03. If you do this you will have included a web.config at the root of your new Website (Chapter03) and have one inside the WroxUnited folder. Having 2 web.configs causes these weird errors. To fix this problem I simply started my new website inside the Wrox United Folder and presto no more irritating message.

  #6 (permalink)  
Old August 3rd, 2006, 01:51 PM
Registered User
Join Date: Aug 2006
Location: Valley Stream, NY, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Okay, now that everyone else has it working, I'll put in my 2 cents. In order to get the 'try it out' on page 74 working, I had to create a new folder (called it Chapter03-Wrox) and move everything but a new web.config file and the ServerControls.aspx file into it. There area web.config files in both the Wrox and Samples folders and boy does that mess things up.

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
Chapter 3 Page 95 jumpot89 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 6 April 22nd, 2009 03:11 AM
Certification in Sharpoint Exam 74-133 Mujeeb Mehdi SharePoint Development 0 September 30th, 2007 10:51 PM
Chapter 3 - Page.IsCrossPagePostBack dpereira BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 9 October 25th, 2006 07:50 AM
Chapter 1 page 74 dryan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 June 16th, 2004 02:16 PM

All times are GMT -4. The time now is 10:35 AM.

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