I created a project in vs2010 using asp.net and C# for .net 4
It runs just fine from my local machine. I publish and deploy to a web server running IIS 7. I created a folder under the default website and put all my files there. Now when I tried accessing this new site and it gives error as attached below. This is when I noticed that the web.config has the form authentication and the membership.... I just want a public page with none of these stuff. Can I just delete all of that? Thank you.
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.
Line 16: <compilation debug="true" targetFramework="4.0" />
Line 18: <authentication mode="None">
Line 19: <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
Line 20: </authentication>
Source File: D:\inetpub\wwwroot\pp\web.config Line: 18