Solved

error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

Posted on 2016-11-14
2
135 Views
Last Modified: 2016-11-14
I have an executable that works OK.  When I run the source code using the same web.config file, I'm getting an 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.      It's pointing to line 53 in web.config.  Line 53 says:

<roleManager enabled="true"/>

The machine on which I have the source code does not have IIS, but the program has worked before.  A recent change was to enable anonymous authentication in addition to forms authentication.
0
Comment
Question by:AlHal2
[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
2 Comments
 
LVL 15

Accepted Solution

by:
Lokesh B R earned 500 total points
ID: 41886281
Hi,

1. You have multiple web.config files in your application.
2. You have to Convert the folder to Application which has the web.config file other than ROOT folder.
0
 

Author Closing Comment

by:AlHal2
ID: 41886386
I had accidentally copied my entire web app into one of its own sub-folders.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

688 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