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 April 26th, 2007, 06:38 AM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 10 onwards

From chapter 10 onwards I'm finding it importsible to carry on with this book. All the files seems to have been completed already and nothing I do to them seems to work. This particular keeps coming up and I just dn't seem to be able to resolve it. I currently have visual Studion 2005, Visual Web Developer and Sql Server 2005 on my machine, I don't know if this issignificant. here is the erro:

Server Error in '/Chapter11' Application.
--------------------------------------------------------------------------------

Configuration 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 39: Set forms authentication and define the login page
Line 40: -->
Line 41: <authentication mode="Forms">
Line 42: <forms loginUrl="Default.aspx"></forms>
Line 43: </authentication>


Source File: C:\Websites\Begin\Chapter11\wroxunited\web.config Line: 41



Show Additional Configuration Errors:


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:\Websites\Begin\Chapter11\wroxunited\web.config line 48)
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:\Websites\Begin\Chapter11\wroxunited\web.config line 49)
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:\Websites\Begin\Chapter11\wroxunited\web.config line 64)
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:\Websites\Begin\Chapter11\wroxunited\web.config line 75)




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

Please help

akuyali

 
Old April 30th, 2007, 04:43 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 Akuyali,

This message appears usually because in VWD you've opened a folder as a website or in IIS created a virtual directory that contains more than one web.config files (in different directories).

So for example in Chapter 10 (I'm assuming C# here), you should be using VWD and choosing File > Open WebSite > File System > Begin\Chapter10\NewsUserControl rather than Begin\Chapter10 to work through the seciton on the NewsUser control. if you're using IIS then make sure the virtual directory you create to work with Chapter 10 again points only to the NewsUserControl directory rather than the Chapter10 directory.

The same applies for the rest of the chapters.

Hope that helps.

Dan

Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive
 
Old May 1st, 2007, 05:48 AM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Dan,

thanks for your responce, it really it that easy, bit not explained anywhere in the book.I spent days trying to figure that out. Now I'm having another problem, this time with the database connection. From chapter one to nine I had VWD and Sql server express on my machine and every thing was fairly ok. Now I have VS, VWD and Sql Server 2005. I hd to uninstall the Sql express because it just was evening installing the 2005 properly. Now in chapter ten I just don't see any of the connectionStrings mensioned in the book. Do I need to attach the database file in each chapter folder to the my Sql server 2005?

Please let me have any solution you might come up with.

thank you

Akuyali

 
Old May 2nd, 2007, 03:22 AM
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 Akuyali,

It's funny how there are always one or two things that we as authors just don't consider - that's one of them. Glad you have it working now anyway.

If you've switched from SQL Express to SQL Server, I'd suggest you have a look at the new Appendix B I wrote a few weeks ago - http://p2p.wrox.com/topic.asp?TOPIC_ID=59199 - which covers all the steps you'll need to get your examples running with a 'full' edition of SQL Server. It's a little more tricky but not too bad. Connection Strings and permissions on the database are the two things you'll need to get working.

Let me know how you get on. The appendix is written using the full WroxUnited site as an example, but if you just substitute in the code for the chapter you want to work with, that'll be fine.

Dan

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 8, ASP.NET 2 P270 onwards sevans BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 May 3rd, 2007 04:54 PM
Chapter 10 gogeo BOOK: Beginning Access 2003 VBA 1 January 22nd, 2006 09:41 AM
Chapter 10 czambran BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 March 29th, 2005 09:35 AM
Chapter 10 columbiasmiles JSP Basics 0 May 17th, 2004 08:09 PM





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