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 4th, 2006, 10:03 AM
Registered User
 
Join Date: Apr 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Configuration error

Hi,
I have this configuration error.If anybody previously has come across the same error and has found solution to it or know atleast what is it and why?Please let me know.THe error is:
 Server Error in '/' 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 14: <pages theme="project1">
Line 15: </pages>
Line 16: <anonymousIdentification enabled="true" />
Line 17: <!--
Line 18: Set compilation debug="true" to insert debugging symbols into the compiled page.


Source File: E:\web\exstreamsol\htdocs\project1\web.config Line: 16



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. (E:\web\exstreamsol\htdocs\project1\web.config line 26)




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

 
Old May 6th, 2006, 12:39 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've gotten this error when I accidentally allow more than one web.config file in the application's directory or any subdirectory thereof.

For example, I have a folder called Backups in every web app I develop, and I periodically zip up the files in my application and store the zips in that folder. This is fine, until I want to use or view one of the files in a zipped backup. Then I unzip the file and do whatever I need to do. However, if I forget to delete the unzipped files, Visual Studio thinks they're part of the application now, and all of a sudden I have 2 web.configs. The exact error I get is the one you listed.

Hope that helps.

Aaron






Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Configuration Error? jimmyliew PHP How-To 4 December 16th, 2006 06:32 AM
Configuration error exstream ASP.NET 2.0 Professional 2 July 2nd, 2006 02:52 AM
Configuration Error johno BOOK: ASP.NET Website Programming Problem-Design-Solution 6 July 22nd, 2005 10:07 PM
Biztalk configuration Error pvasudevan Biztalk 0 May 4th, 2005 04:55 AM





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