Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 26th, 2009, 08:03 AM
Registered User
 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Beginning ASP.NET 2.0

I'm learning ASP.NET from Beginning ASP.NET 2.0 by four writters Chris 1 and 2, David, and John.
In that book they prescribe to download code for that edition from wrox's site, which I've downloaded. It's in a compressed file, which I've decompressed. Then again after decompressing, it contains lots of compressed files one for each chapter.
Then what I need to do and where to place those all files?
What I've done is I also decompressed all those files and placed them all in one folder. Is it correct method?
Like I've created one folder Beginning ASP.NET 2.0 Codes. Then inside this folder I've placed all the decompressed codes for all chapters. Is it a correct method of placing the codes?
If this is correct method then why am I getting errors in running programs?
While running the codes I'm getting this error frequently
Error 5 C:\Beginning ASP.NET Codes\Chapter03\Begin\Chapter03\WroxUnited\Default .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:\Beginning ASP.NET Codes\Chapter03\Begin\Chapter03\wroxunited\web.con fig line 41) C:\Beginning ASP.NET Codes\Chapter03\Begin\Chapter03\WroxUnited\Default .aspx 1 1 C:\...\Chapter03\
and this too
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:\Beginning ASP.NET Codes\Chapter03\Begin\Chapter03\WroxUnited\web.con fig 41


So far I've reached at chapter 3 and this is the case.
please help.
Thanks.

Last edited by Rohitrrrrr; May 26th, 2009 at 08:06 AM.. Reason: In correct words and grammer
 
Old May 31st, 2009, 10:03 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,

You typically need to maintain the folder structure when you unzip. So, don't place them all in one folder, but make sure the original structure is maintained. By default, the built-in zipper of Windows maintains this structure.

The error you get is often caused by opening an incorrect folder in Visual Web Developer. Consider this structure:

C:\Downloads\BegASPNET2\Chapter1
C:\Downloads\BegASPNET2\Chapter2
C:\Downloads\BegASPNET2\Chapter3

Now, when you open up C:\Downloads\BegASPNET2\ as the root of a site in VWD and browse to http://localhost:1234/Chaper1 you get this error. Instead, open up C:\Downloads\BegASPNET2\Chapter1 and then open the site in your browser.

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning ASP.NET Databases Using VB.NET michael1965 ASP.NET 1.0 and 1.1 Basics 2 January 13th, 2009 04:21 AM
Can'T find code to Beginning Asp.net using VB.NET darruler All Other Wrox Books 1 August 12th, 2004 05:04 PM
Help 'beginning asp.net using vb.net' source code jkmf Wrox Book Feedback 1 January 18th, 2004 08:09 AM
Beginning ASP.Net Databases Using VB.Net ISBN 6195 tlamazares SQL Server ASP 1 December 15th, 2003 01:28 PM





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