I developed a small ASP.NET 3.5 app. with only few pages and no DB connectivity. I am trying to publish it, but my website gives error:
**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 45:
Line 46: -->
Line 47: <authentication mode="None"/>
Line 48: <!--
Line 49: The <customErrors> section enables configuration
I am using Windows 7 with IIS 7. When I add a new website in IIS there are a few concerns here. Below are the images that show that something is wrong underhood:
- While creating new application pool for an application built on .NET 3.5, I could not see the .NET Framework 3.5 in the list:
- When I open the Add Website dialog, and click Test Settings, it gives this error:
Please let me know how to fix this issue. I also want to know whether I have to add a website or add a virtual directory?