ASP.NET 2.0 BasicsIf 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 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 .

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)

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.