IIS7 - Running ASP.NET 1.1 applications

There a lot of other articles available in iis.net which explains how to run an ASP.NET application on IIS7. Here are those steps:

  1. Download .NET Fx 1.1 from https://www.microsoft.com/downloads/details.aspx?familyid=A8F5654F-088E-40B2-BBDB-A83353618B38&displaylang=en
  2. Download .NET Fx 1.1 SP1 from https://www.microsoft.com/downloads/details.aspx?familyid=A8F5654F-088E-40B2-BBDB-A83353618B38&displaylang=en
  3. Install both of them
  4. Allow ASP.NET 1.1 in the ISAPI/CGI Restrictions
  5. Make sure you run your application pool in a 32-bit mode + v1.1 + classic mode

Your application pool's configuration in applicationHost.config should look like below:

    <add name="ASP.NET 1.1" enable32BitAppOnWin64="true" managedRuntimeVersion="v1.1" managedPipelineMode="Classic" autoStart="true" />

Below are the commands using appcmd.exe tool which would do this.

    appcmd set apppool /apppool.name:"ASP.NET 1.1" /enable32BitAppOnWin64:true
    appcmd set apppool /apppool.name:"ASP.NET 1.1" /managedRuntimeVersion:"v1.1"
    appcmd set apppool /apppool.name:"ASP.NET 1.1" /managedPipelineMode:"Classic"
    appcmd set apppool /apppool.name:"ASP.NET 1.1" /autoStart:true  (optional)

Now, comes an interesting UI module. You can write a UI module to do whatever you want. I felt like writing one today, and thought of writing one for the above. Below is how it looks:

 

         image

 

Here is the link for the DLL:

To add this module in your IIS 7 manager follow the below steps:

  1. Download the IIS7Fx11Advisor.dll

  2. From inetsrv folder Drag and Drop the IIS7BackupRestore.dll into the Global Assembly Cache (C:\Windows\assembly) or use GacUtil -i IIS7Fx11Advisor.dll to install it to the GAC.

  3. Under File Menu, browse for the file %WinDir%\System32\InetSrv\config\Administration.config.

  4. Search for the <moduleProviders> section and add the following

    <add name="IIS7Fx11Advisor" type="IIS7Fx11Advisor.MyModuleProvider, IIS7BackupRestoreUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=db9daa3d2ea5f6fd" />

  5. Search for the <modules> section and add the following

    <add name="IIS7Fx11Advisor" />

  6. Open Inetmgr and You will see the module listed in your IIS 7 Manager if you would’ve followed the above steps properly.

Let me know if this helps you!