Solved

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

Posted on 2016-11-14
2
81 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
2 Comments
 
LVL 14

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

792 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