ERROR: Error 1 It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level.

The error:
Error 1 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.

Is most likely caused by a config file existing somewhere in the directory structure of the app you’re working with, that has duplicated some config section which is only allowed in your root Web.Config.

See: http://scottonwriting.net/sowblog/archive/2010/02/17/163375.aspx