Link to home
Start Free TrialLog in
Avatar of AlHal2
AlHal2Flag for United Kingdom of Great Britain and Northern Ireland

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Lokesh B R
Lokesh B R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlHal2

ASKER

I had accidentally copied my entire web app into one of its own sub-folders.