Not able to configure IIS 7 for ASP.NET 3.5 app.
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:

1. 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:

![enter image description here][1]

2. When I open the Add Website dialog, and click Test Settings, it gives this error:

![enter image description here][2]

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?

  [1]: http://i.stack.imgur.com/D6Z2F.png
  [2]: http://i.stack.imgur.com/qmHOA.png
Not able to configure IIS 7 for ASP.NET 3.5 app.
===

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:

1. 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:

![enter image description here][1]

2. When I open the Add Website dialog, and click Test Settings, it gives this error:

![enter image description here][2]

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?

  [1]: http://i.stack.imgur.com/D6Z2F.png
  [2]: http://i.stack.imgur.com/qmHOA.png