Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 12th, 2008, 12:16 PM
Registered User
 
Join Date: Jul 2008
Location: runcorn, cheshire, United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to newbreed65
Default Authentication Issue

Hey Imar and everyone else

I’ve come across the problem below as i tried previewing the first try it out in chapter 13, this isn’t the first time I’ve come across it since it always happens when I try uploading any asp.net work I’ve done.

Can someone to help me get my head round this problem because whenever I tried figuring out what’s wrong I just get a mental block and just can process the information

andy


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 79: ASP.NET to identify an incoming user.
Line 80: -->
Line 81: <authentication mode="Windows"/>
Line 82: <!--
Line 83: The <customErrors> section enables configuration



Reply With Quote
  #2 (permalink)  
Old July 12th, 2008, 08:41 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

From the perspective of ASP.NET, in IIS, each web site and virtual directory is an application starting point, that is, the base folder from which an ASP.NET application runs. Certain configuration options are only permitted at this point in an application.

A portion of the error message really says it all: "This error can be caused by a virtual directory not being configured as an application in IIS."

What you are seeing is a case where you are intending for the directory in which you web.config lives to be an application starting point, but it isn't. This has to be configured in IIS. It needs to be either a new web site or a new virtual directory in an existing web site.

*** Important note ***: Windows XP only supports 1 web site. You can only create more virtual directories. Windows Server versions of IIS support multiple web sites.

-Peter
compiledthoughts.com
Reply With Quote
  #3 (permalink)  
Old July 13th, 2008, 04:19 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

In addition to what Peter said, you may also want to look at page 656 where this error is mentioned.

Most likely, you're opening up (and browsing to) the wrong folder in VWD. Maybe you opened up C:\BegASPNET\Source and then tried to browse to a folder like Chapter09? If that's the case, make sure you open the chapter folder in VWD directly: C:\BegASPNET\Source\Chapter09 instead of C:\BegASPNET\Source.

Hope this helps,

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.
Reply With Quote
  #4 (permalink)  
Old July 13th, 2008, 05:57 AM
Registered User
 
Join Date: Jul 2008
Location: runcorn, cheshire, United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to newbreed65
Default

thanx ive just realised what ive done stupidly wrong lol, ive have been trying to used a copy of my site that i made just incase i broke it when trying a few different things.

yeah im abit retarded :-p

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication stu9820 ASP.NET 1.0 and 1.1 Professional 4 December 7th, 2009 05:31 AM
Authentication speedyH Beginning PHP 1 September 25th, 2004 11:34 AM
Authentication PbsiGuru General .NET 6 March 24th, 2004 02:41 PM
Authentication dbradley ASP.NET 1.0 and 1.1 Basics 2 August 13th, 2003 10:17 PM



All times are GMT -4. The time now is 12:35 AM.


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