What to do if you get “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”

Please view the following URL for cause and resolution of this problem http://forums.asp.net/t/769696.aspx Most of the times this occurs if you have a more than web.config defined in your sub folders.