Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

13 Experts available now in Live!

Get 1:1 Help Now