When am trying to build a web application through visual studio 2010, I was getting the following 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. "
The solution is to check whether the is any other sub folder which is having web.config file. After removing it, The build was successful.
Best Regards