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 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 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 Display Modes
  #1 (permalink)  
Old May 17th, 2007, 03:19 PM
Registered User
 
Join Date: May 2007
Location: , , .
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
:)
  #2 (permalink)  
Old May 18th, 2007, 09:49 PM
Authorized User
 
Join Date: Oct 2006
Location: , , .
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!!

  #3 (permalink)  
Old May 19th, 2007, 09:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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

 


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
Error allowdefinition rat ASP.NET 2.0 Basics 11 March 17th, 2009 02: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 08:57 AM
ERROR allowDefinition='MachineToApplication' adamcherochak ASP.NET 2.0 Basics 6 September 7th, 2007 06:43 PM
problem with allowDefinition='MachineToApplication juliaw .NET Framework 2.0 2 June 12th, 2006 11:44 AM
allowDefinition='MachineToApplication' tripathi.vipul ASP.NET 1.0 and 1.1 Basics 0 May 13th, 2006 07:11 AM



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


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