I get this error when deploying website in 11s 7.5 :
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser 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.
Source Error:
Line 16: <compilation debug="true" targetFramework="4.0" />
Line 17:
Line 18: <authentication mode="Forms">
Line 19: <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
Line 20: </authentication>
Source File: C:\Users*\Documents\Visual Studio 2010\Projects\web\web\web.config Line: 18
I am trying to deploy my website locally for testing.
Check out with follwing solution:
Delete the bin and obj folders, run a Clean Solution and built it again, the error goes away.
check the Application Pool the site is running under to make sure the Application Pool is using the .NET 4.0 Framework (instead of .NET 2.0 Framework).