Configuring servers is not my strong suit by any means.
I'm trying to move a development project to Windows 7.
One of the things that I need to run the application is to select ASP.NET v4.0 as the application pool within IIS.
I went through the directions in the following link to make sure that the proper Application Development Options were selected:
http://www.gotknowhow.com/articles/how-to-install-iis7-and-enable-aspnet
From within the IIS Manager, I select Application Pools and only see
– Classic .NET AppPool
– DefaultAppPool
I need to also be able to select from
– ASP.NET v4.0
– ASP.NET v4.0 Classic
How can I add these to the list of available application pools?
Best Answer
Chances are you need to install .NET 4 (Which will also create a new AppPool for you)
First make sure you have IIS installed then perform the following steps:
cmd
and press ENTERYou may need to start this as an administrator if you have UAC enabled.
To do so, locate the exe (usually you can start typing with Start Menu open), right click and select "Run as Administrator"
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\
and press ENTER.aspnet_regiis.exe -ir
and press ENTER again.-i
instead of-ir
. This will change their AppPools for you and steps 5-on shouldn't be necessary.(You can repeat steps 7-on for every site you want to apply .NET 4 on as well).
Additional References:
The framework for those that don't already have it.
Directions on how to run the command prompt with Administrator rights.
For those that might want to know what
-ir
or-i
does (or the difference between them) or what other options are available. (I typically use-ir
to prevent any older sites currently running from breaking on a framework change but that's up to you.)