• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

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

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
AlHal2
Asked:
AlHal2
1 Solution
 
Lokesh B RDeveloperCommented:
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
 
AlHal2Author Commented:
I had accidentally copied my entire web app into one of its own sub-folders.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now