Error: 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."
I faced with above error while implementing VB.net+MySQL application yesterday in the company where I am working. Actually this error will come when Virtual Directory is not being configured as an ASP.NET application. To do so we have to follow below steps :-
- Open the IIS Administration Console on the server.
- Right click on the Virtual Directory where the application files are published
- There is a "Application Settings" section. Just hit "Create" in front of the "Application Name" textbox, then hit "Ok"
- Check that the Virtual Directory appears with a different icon, it should be ok no
Then this error got resolved.