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.
AlHal2Asked:
Who is Participating?
 
Lokesh B RConnect With a Mentor DeveloperCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.