Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set the ASP.NET version for a Virtual Directory using IIS Manager 7.0?

Tags:

asp.net

iis

iis-7

In the old version of IIS Manager, I could just right-click on a VD, hit properties, and then in the ASP.NET tab pick the version of ASP.NET I wanted to run. Does anyone know if that is still possible? I am running a localhost instance of IIS on my Vista box and I am not used to the new UI that IIS 7 comes with.

like image 629
skb Avatar asked Dec 08 '22 07:12

skb


2 Answers

You need to change the application pool - the ASP.NET version is set at the application pool level.

Left click the virtual directory in IIS manager, then on the far right of the screen click on 'advanced settings' The application pool is at the top of the list there.

If you need to, you can add a new application pool by right clicking the 'application pools' icon in the left pane and selected 'Add Application Pool'

like image 114
Steve Willcock Avatar answered Jan 30 '23 13:01

Steve Willcock


IIS7 has two options within a "website". In IIS6 you'd add a sub-app as a "Add Virtual Directory..." in IIS7 doing so forces you to keep the same AppPool and thus .NET framework version as the website.

But, IIS7 now has an "Add Application..." options, which allows you to essentially do what IIS6 had allowed, so that you can explicitly state the AppPool to run in and it can differ from the parent website.

like image 20
Brandon Luhring Avatar answered Jan 30 '23 13:01

Brandon Luhring