Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-05-05
3
Medium Priority
?
743 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Assisted Solution

by:spprivate
spprivate earned 300 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 300 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

660 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