Solved

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

Posted on 2016-11-14
2
95 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 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