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 February 2nd, 2006, 12:29 AM
rat rat is offline
Authorized User
Join Date: Jan 2006
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 ?

Old February 2nd, 2006, 01:32 PM
Friend of Wrox
Join Date: Apr 2005
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.


Old February 6th, 2006, 12:50 AM
Registered User
Join Date: Feb 2006
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

Old February 6th, 2006, 04:43 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Maybe this post helps??


Imar Spaanjaars
Everyone is unique, except for me.
Old April 20th, 2006, 11:04 AM
Registered User
Join Date: Apr 2006
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.

Old August 3rd, 2006, 01:51 PM
Registered User
Join Date: Aug 2006
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.

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

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