Solved

allowDefinition='MachineToApplication' error in Web.Config in WWWROOT Folder

Posted on 2009-05-05
3
734 Views
Last Modified: 2013-11-26
I keep getting the below error from my web.config file.

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.

It points to the line:

<authentication mode="Forms"/>

I originally had my web.config file under the site root (one above the WWWROOT folder) and this error didn't occur, however the site wouldn't load either. When I move the config file to the WWWROOT, the site loads but I keep getting this error. I can't configure the WWWROOT folder as an application.

I have a feeling I have something set up incorrectly. Any ideas?
<authentication mode="Forms"/>

Open in new window

0
Comment
Question by:iammrkcohen
3 Comments
 
LVL 15

Assisted Solution

by:spprivate
spprivate earned 75 total points
ID: 24306395
Check the last part of this post

http://forums.asp.net/p/769696/2665116.aspx
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 75 total points
ID: 24313042
If you are uploading your website to a hosting provider, most hosting providers allow you to create ASP.NET applications with IIS through the control panel. It is usually called "Application Settings". You can select the folder where your asp.net files reside and create that folder as an application (virtual directory) inside IIS.
0
 

Accepted Solution

by:
iammrkcohen earned 0 total points
ID: 24318066
Yea it actually is configured as an application. I forgot to mention that.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a complete list of ASP.NET page load events 3 29
VB.Net How to Exit Sub - Exit Form??? 5 51
Adware on IIS hosted asp.net website 1 20
Web Form VB.Net  import CSV 4 27
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now