Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 May 17th, 2007, 02:19 PM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default allowDefinition='MachineToApplication' Error

Hi,
I downloaded the sample The BeerHouse project and when I try a rebuild I get the following error:
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.
I searched on this error and found a couple possible solutions but neither fixed the error or are applicable.
One solution was to be sure the web app is set as an IIS virtual directory. Did that.
Another solution said to not use any allowDefinition='MachineToApplication' elements in web.config files located in subfolders, below the main web.config file.
There are two web.config files. The main is in a folder "TBH_Web" located under the solution. The second is in the "Admin" folder located under "TBH_Web". The latter's web.config file does not contain any of the special MachineToApplication elements.
I did get the project to build by moving all the files located in the "TBH_Web" folder to its parent folder and removing the "TBH_Web" folder but this doesn't seem like the correct solution. Is there another solution or an explanation on why this is happening?
TIA,
Gary
:)
 
Old May 18th, 2007, 08:49 PM
Authorized User
 
Join Date: Oct 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

troubleshoot by excluding or delete the web.config file in the "admin" folder, and see!!

 
Old May 19th, 2007, 08:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

>One solution was to be sure the web app is set as an IIS virtual directory. Did that.

It's unlikely that you're hosting this site in IIS on your machine unless you made a serious change to the project.

Under SP1 of VS2005 you can specify the virtual folder to be used when you press F5. That is your home directory for the app. IIS is not normally used by VS 2005 (unlike 2003).

Eric






Similar Threads
Thread Thread Starter Forum Replies Last Post
Error allowdefinition rat ASP.NET 2.0 Basics 11 March 17th, 2009 01:49 AM
CH3 allowDefinition='MachineToApplication' jtavenner BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 May 2nd, 2008 07:57 AM
ERROR allowDefinition='MachineToApplication' adamcherochak ASP.NET 2.0 Basics 6 September 7th, 2007 05:43 PM
problem with allowDefinition='MachineToApplication juliaw .NET Framework 2.0 2 June 12th, 2006 10:44 AM
allowDefinition='MachineToApplication' tripathi.vipul ASP.NET 1.0 and 1.1 Basics 0 May 13th, 2006 06:11 AM





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