Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 September 21st, 2003, 10:17 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jsmoritz
Default Parser and configuration errors (endless loop!)

In VS I created a subfolder and configured it for forms authentication. When I build and browse a page I get:

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 2:
Line 3: <system.web>
Line 4: <authentication mode="Forms">
Line 5: <forms name="CookieFormApplication"/>
Line 6: </authentication>

I went into IIS and made the folder into an application as suggested by an earlier archive I read. When I did this I get this error:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'penny_saver.com.login1'.

Source Error:


Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="login.aspx.vb" Inherits="penny_saver.com.login1" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>

Does anyone know why this is happening?

Thanks,
jsmoritz

 
Old September 22nd, 2003, 10:30 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It would appear that you copied the web.config file from your original application root folder into the subfolder so you can setup forms authentication on it. What's happending is that there are settings in web.config that only apply at the application root level. That's where you are getting the error.

- Got back into IIS and navigate to the subfolder that you created into an application and undo that. The subfolder does not need to be an application as long as it's underneath one already.

- Go to your subfolder\web.config and remove everything in it EXCEPT the authentication node(s). This should straighten things out.

Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Saxon Parser ravi_sri24 XSLT 7 February 8th, 2008 06:25 AM
HTML parser madhukp Classic ASP Basics 1 February 2nd, 2006 05:19 PM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
errors and fixing errors Droopy XML 0 August 26th, 2003 12:47 AM
Errors Errors DB Errors Ljhopkins VS.NET 2002/2003 0 July 15th, 2003 12:42 PM





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