Pages

Friday, April 22, 2016

How to add Application pool with .Net Framework 1.1 in IIS 7.5

Problem: 

IIS 7.5 on Windows Server 2008 R2 does not install .Net Framework 1.1 by default. You need to install it manually and register it.

When you open IIS Manager and go to Application pool , you see only one Application Pool named ASP.NET 1.1 configured with .Net Framework 1.1 available in Application pools List.

When you add a new Application pool and try to bind it with .Net Framework 1.1 , you dont find the version 1.1 in the Drop Down list in Basic Settings of that Application pool.



Solution

Method 1: 


To Add a new Application pool in IIS 7.5 with .Net Framework 1.1 you need to take Following steps 

1. Open Command Prompt with Administrator privilige (Run As Administrator)
2. Change the directory to C:\Windows\System32\Inetsrv :
3  Run following APPCMD command to create new Application pool with .Net Framework 1.1

appcmd add apppool /name:"NewPool" /managedRuntimeVersion:"v1.1"

After placing this command you will see a new Application pool in Application pool list
which will show .Net Framework 1.1 bound to it. Rest of the settings can be made via GUI.

Method 2 :

Run Following commands from C:\Windows\System32\Inetsrv :

appcmd add apppool /name:"NewPool" /managedRuntimeVersion:"v1.1"
appcmd set apppool /apppool.name:"NewPool" /enable32BitAppOnWin64:true
appcmd set apppool /apppool.name:"NewPool"/managedPipelineMode:"Classic"
appcmd set apppool /apppool.name:"NewPool" /autoStart:true


Cheers!!!!