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 February 27th, 2007, 03:49 PM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't Compile the Applications of the book (C#)

Well,

When I try to compile a project of the book names "Beginning ASP .Net 2.0 with C#" I get the following error:

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: 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.

Source Error:


Line 34: -->
Line 35:
Line 36: <authentication mode="Forms">
Line 37: <forms loginUrl="Default.aspx"></forms>
Line 38: </authentication>

This happens to both Begin and End versions of the same file so I guess it's not my fault.

This happends with the webservices that are under chapter 12 of the book. Also on most project I can seem to access the databases and I get the following error message during browsing saying that the databse file is outside of the UNC share... Well I've looked into some solutions on the net, but the using the User Instance = true in the connection string didn't help at all!

Well, it seems that instead of learning I have to deal with errors...Well please help me because it's very frustrating when you want to study something and you get errors where you shouldn't.

I use VWD on Windows Vista Ultimate with ISS 6.

Please help!
 
Old May 3rd, 2007, 05:06 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

Hi Andr3w,

I think you're coming up against two problems here, both stemming from using IIS rather than the web server built into VWD. If you're using Windows Vista, that's IIS7 too. Please check out how to set up the chapter samples using IIS 6 in the new appendix B I wrote which you can downlaod from my website at http://www.hmobius.com/downloads.aspx

While you're reading through that that the reason you get the parser error message you quote is becuase in IIS you've created a virtual directory that contains more than one web.config files (in different directories).

So for example in Chapter 12 (I'm assuming C# here), you should be creating a virtual directory on Begin\Chapter12\PDA or Begin\Chapter12\WroxUnited rather than Begin\Chapter12.

The same applies for the rest of the chapters.

Hope that helps.

Dan


Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive





Similar Threads
Thread Thread Starter Forum Replies Last Post
Layered Applications Muhammad Zeeshan General .NET 5 July 25th, 2007 04:08 AM
Restriction to certain applications PankajGarg10 General .NET 0 April 13th, 2007 01:08 AM
Multiple Applications ~Bean~ ASP.NET 1.x and 2.0 Application Design 1 March 2nd, 2006 08:47 PM
Win32 applications meierk BOOK: ASP.NET Website Programming Problem-Design-Solution 0 October 7th, 2003 09:17 PM





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