Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 June 17th, 2009, 04:57 PM
Authorized User
 
Join Date: Jun 2009
Posts: 70
Thanks: 18
Thanked 1 Time in 1 Post
Default Developement Server problem?

I have switched off IIS (by going to enter cmd from run, then entering: net stop iisadmin, the entering Y to the dependencies question.

Yet (now in Chapter 4) when I run files I keep getting error logs like:

Quote:
Warning 1 C:\BegASPNET\Site\Demos\ControlsDemo.aspx: ASP.NET runtime 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. (C:\BegASPNET\site\web.config line 82) C:\BegASPNET\Site\Demos\ControlsDemo.aspx 1 1 C:\BegASPNET\

Error 2 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:\BegASPNET\Site\web.config 82
At the moment I would prefer not to run IIS, since localhost is normally looking at Apache 2 - and up until now, the development server has been OK. But after googling around, I am not clear how to clear the errors.
 
Old June 17th, 2009, 05:43 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at page 656; it lists the common reasons for this error.

My guess is that you opened C:\BegASPNET as a site in VWD, rather than opening C:\BegASPNET\Site.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
kiwibrit (June 17th, 2009)
 
Old June 17th, 2009, 06:19 PM
Authorized User
 
Join Date: Jun 2009
Posts: 70
Thanks: 18
Thanked 1 Time in 1 Post
Default

Yes I think that's right. I got round my problem rather tortuorously (just before I came back here) by rebuilding the site - by opening a new web site into a directory with the folders set up, then adding each page as a new item - then pasting the code into it. The solution on page 656 looks a whole bunch neater! Thanks.
 
Old June 18th, 2009, 04:06 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with "server.transfer" (maybe) gtka ASP.NET 1.0 and 1.1 Basics 0 June 27th, 2006 06:04 AM
Server to Server XML Problem (ASP.NET to ASP) Enwood XML 7 April 26th, 2006 03:22 AM
Server problem Goran ASP.NET 1.0 and 1.1 Basics 2 January 25th, 2005 06:39 AM
Server problem? Enoteca Classic ASP Basics 1 February 11th, 2004 02:33 PM





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