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 12th, 2006, 08:06 PM
Registered User
 
Join Date: Jun 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error trying to run the TBH

Hello,

I just recieved the book today and downloaded the files for the TBH.
When trying to run the web site I get an 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. When double clicking the error message, it brings me to the web.config file at location:

<authentication mode="Forms">
   <forms cookieless="AutoDetect" loginUrl="~/AccessDenied.aspx" name="TBHFORMAUTH"/>
</authentication>

Can anyone help me to correct this error? Any help would be much appreciated.

Thanks

Karl
 
Old May 14th, 2006, 08:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you trying to open this project with VS 2003? It requires VS 2005.

We no longer use Virtual Directories in 2005 for development projects (in most cases, anyway).

Eric
 
Old May 15th, 2006, 08:54 AM
Registered User
 
Join Date: Jun 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

Thanks for the reply.

To answer your question, I'am using visual studio 2005 to open the
project

Regards

Karl
 
Old May 15th, 2006, 04:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you make a simple web page using VS 2005 on your computer and run it? Does it use the integrated webserver (you should see it in your icon tray, and it gives a random-looking port number in the URL)?

This application wasn't set up to use IIS "as is". If you use the supplied solution it loads the project only from the filesystem, and displays with the integrated web server.
 
Old May 15th, 2006, 04:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I thought of something else you can try - turn off your IIS web server completely, and then try to run TBH by pressing F5.

If you're not familiar with IIS, it's here: Control Panel, Administrative Tools, Internet Information Services. Then drill down until you find "Default Web Site". Right click on it and select Stop.

Eric
 
Old May 15th, 2006, 07:41 PM
Registered User
 
Join Date: Jun 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I was thinking the same thing to turn off IIS but I first decided to delete the TBH folder and start over by extracting the files form the zip file and double clicking the solution file. Know I'am able to run the TBH site.

Thank you for your suggestions.

Regards

Karl
 
Old May 19th, 2006, 03:34 PM
Authorized User
 
Join Date: May 2006
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

If you are trying to access the website using localhost (which is probable if you double click any .aspx file) then you need to have a virtual directory on IIS. Visual Studio 2005 doesn't require IIS to have a virtual directory within the studio environment.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Error ! When i was trying to run aeroboy32000 Visual Studio 2008 1 January 12th, 2008 02:11 PM
Help! Still cannot get the TBH to run sarka BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 August 12th, 2007 12:21 AM
Run error while using CDTPicker David Leikis Visual C++ 2005 0 July 27th, 2007 03:59 PM
Run Time Error JBond Access VBA 0 May 27th, 2004 09:50 AM





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