Solved

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

Posted on 2009-05-05
3
741 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 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

630 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