Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Display Modes
  #1 (permalink)  
Old May 4th, 2006, 10:03 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old May 6th, 2006, 12:39 PM
Friend of Wrox
 
Join Date: Apr 2004
Location: San Francisco, CA, USA.
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

Reply With Quote
Reply


Thread Tools
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
PHP Configuration Error? jimmyliew PHP How-To 4 December 16th, 2006 05: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



All times are GMT -4. The time now is 03:48 PM.


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