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 May 23rd, 2008, 08:58 AM
Authorized User
 
Join Date: Sep 2007
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB: Application Error in virgin Ch11

I unzipped chapter11 files today to begin the exercise on p389 (adding content to FanClub pages).Step 1 says "run the site" but it won't. I get the following error:
Quote:
quote:"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."
I get the same error if I run the site in the End/Chapter11 folder.

As usual, I start by searching the VWD help files using Microsoft Document Explorer but couldn't see anything remotely helpful. Then tried Google and found an article at http://geekswithblogs.net/ranganh/ar.../25/37609.aspx

However, neither of the suggestions seemed helpful.

At http://www.velocityreviews.com/forum...plication.html, the following solution is provided:
Quote:
quote:It means that if you have an application, you should not configure the
MachineToApplication settings in web.config's in the subdirectories.

All you have to do is set the MachineToApplication settings in your
Application's root, and they will be inherited in the subdirectories.
Using Windows Search tool, I have not found any files in chapter11 folders containing "machine", so if I need to add this setting to the web.config in the root, what should it say?

The source of the error is shown as
Line 44: <authentication mode="Forms">

What does this mean?

I'm using VWD's built-in web server, Cassini, not IIS.

Richard
Rugeley, UK
WinXP Pro SP2
VBW Express + SQL Server 2005 Express
__________________
Richard
Rugeley, UK
WinXP Pro SP2
VBW Express + SQL Server 2005 Express
 
Old May 23rd, 2008, 09:07 AM
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 here: http://p2p.wrox.com/topic.asp?TOPIC_ID=71373

You're probably just opening a folder one level too high....

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old May 23rd, 2008, 09:50 AM
Authorized User
 
Join Date: Sep 2007
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes Imar, you are right. If I open the website at Chapter11\Wroxunited, it springs into life (after I undid my unnecessary changes to Default.aspx & FanClub.aspx, that is).

Thanks.

Richard
Rugeley, UK
WinXP Pro SP2
VBW Express + SQL Server 2005 Express





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Ch11 Using Profiles p415 - CType Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 June 12th, 2008 05:58 AM
Error In the vb.net application zrtv .NET Framework 2.0 1 March 31st, 2008 07:30 AM
Problem using mail() from Ch11 nodster Beginning PHP 2 May 14th, 2007 08:44 AM
Ch11 Exerc 3 Appendix A problem VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 February 16th, 2006 03:41 PM
code in CH11 not work in FireFox din BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 2 January 18th, 2006 09:21 PM





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