GIT – Configuring servers is not my strong suit by any means. I’m trying to move a development project to 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.

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?

Chances are you need to .NET 4 (Which will also take care of a new AppPool for you)

First make sure you have IIS installed then perform the following steps:

  1. Open your prompt (Windows + R) and type cmd and press ENTER
    You 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”
  2. Type cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\ and press ENTER.
  3. Type aspnet_regiis.exe -ir and press ENTER again.
    • If this is a fresh version of IIS (no other sites running on it) or you’re not worried about the hosted sites breaking with a framework change you can use -i instead of -ir. This will change their AppPools for you and steps 5-on shouldn’t be necessary.
    • at this point you will see it begin working on installing .NET’s framework in to IIS for you
  4. Close the DOS prompt, re-open your start menu and right click Computer and select Manage
  5. Expand the left-hand side (Services and Applications) and select Internet Information Services
    • You’ll now have a new applet within the content window exclusively for IIS.
  6. Expand out your computer and locate the Application Pools node, and select it. (You should now see ASP.NET v4.0 listed)
  7. Expand out your Sites node and locate the site you want to modify (select it)
  8. To the right you’ll notice Basic Settings… just below the Edit Site text. Click this, and a new window should appear
  9. Select the .NET 4 AppPool using the Select... button and click ok.
  10. Restart the site, and you should be good-to-go.

(You can repeat steps 7-on for every site you want to apply .NET 4 on as well).

This tip can be using for Windows 2008.

Print Friendly, PDF & Email



Bài viết liên quan