Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 October 11th, 2004, 06:10 AM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Basic directory Chp 20 of Beginning ASP.NET

Dear Programmers,
I have a problem in Ch20\Basic. While entering http://localhost/begASPNET/Ch20/Basic/, I get the following errors:

Line 1: <configuration>
Line 2: <system.web>
Line 3: <authentication mode="Windows" />
Line 4: </system.web>
Line 5: </configuration>

Source File: c:\inetpub\wwwroot\begASPNET\Ch20\Basic\web.config Line: 3

Pls solve my problem.

 
Old October 12th, 2004, 01:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

What is the actual error?
 
Old October 12th, 2004, 10:36 PM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Server Error in '/BegASPNET' 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 1: <configuration>
Line 2: <system.web>
Line 3: <authentication mode="Windows" />
Line 4: </system.web>
Line 5: </configuration>


Source File: C:\BegASPNET\Ch20\Basic\web.config Line: 3


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
 
Old October 13th, 2004, 07:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Configure the virtual directory as an application. Go to IIS, right-click the folder for the VD, and select properties. WHere it says application name, make sure that you create the application by clicking the create button.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Source Codes: Beginning Visual Basic .NET Database cyberlearner All Other Wrox Books 4 July 3rd, 2014 08:13 AM
"Beginning E-Commerce with Visual Basic, ASP, SQL mcinar All Other Wrox Books 6 November 20th, 2007 06:50 AM
chapter 20 basic authentication egivler BOOK: Beginning ASP.NET 1.0 3 June 29th, 2004 09:16 PM
Beginning E-Commerce with Visual Basic, ASP and SQ [email protected] All Other Wrox Books 0 June 13th, 2003 11:55 AM





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