How to Deploy Dotnet Framework Multiple Version Like v1.1,v2.0,v3.5,v4.0 in IIS Server..


In this article, I will explain How to Deploy Dotnet Framework Multiple Version Like v1.1,v2.0,v3.5,v4.0 in IIS Server. ASP.NET 1.1 runs only in 32-bit mode.if you want to run ASP.NET 1.1 and ASP.NET 2.0 at the same time, you must run IIS in 32-bit mode. Here How to install different versions in IIS using Command mode..

How to Deploy Dotnet Framework Different Versions Like v1.1,v2.0,v3.5,v4.0 of IIS Server


  • Operating System - Windows Server 2003 , IIS Version - IIS 6.0

  • Operating System - Windows XP Professional, IIS Version - IIS 5.1

  • To open IIS Manager at a command prompt
  • On the Start menu, click Run.

  • In the Open dialog box, type inetmgr, and then click OK.


  • For IIS Settings


    ASP.NET 1.1 runs only in 32-bit mode. ASP.NET 2.0 runs in 32-bit mode or in 64-bit mode.if you want to run ASP.NET 1.1 and ASP.NET 2.0 at the same time, you must run IIS in 32-bit mode.IIS 6.0 supports both the 32-bit mode and the 64-bit mode. However IIS 6.0 does not support running both modes at the same time on a 64-bit version of Windows.

    ASP.NET 1.1, 32-bit version


    To run the 32-bit version of ASP.NET 1.1, follow these steps:
  • Click Start, click Run, type cmd, and then click OK.

  • Type the following command to enable the 32-bit mode:

  • % cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

  • Type the following command to install the version of ASP.NET 1.1 and to install the script maps at the IIS root and under:

  • % %SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i -enable

  • Make sure that the status of ASP.NET version 1.1.4322 is set to Allowed in the Web service extension list in Internet Information Services Manager.

  • Then Register the virtual Directory Name :

  • % SYSTEMROOT %\Microsoft.NET\Framework\v1.1.4322\ aspnet_regiis -s W3SVC/1/ROOT/your virtual directory Name

  • ASP.NET 2.0 and 3.5, 32-bit version


    To run the 32-bit version of ASP.NET 2.0, follow these steps:
  • Type the following command to install the version of ASP.NET 2.0 (32-bit) and to install the script maps at the IIS root and under:

  • %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i -enable

  • Make sure that the status of ASP.NET version 2.0.50727 (32-bit) is set to Allowed in the Web service extension list in Internet Information Services Manager.

  • Then Register the virtual Directory Name:

  • %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Aspnet_regiis -s W3SVC/1/ROOT/ your virtual directory Name

  • ASP.NET 2.0, 64-bit version


    To run the 64-bit version of ASP.NET 2.0, follow these steps:
  • Click Start, click Run, type cmd, and then click OK.

  • Type the following command to disable the 32-bit mode:

  • cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0

  • Type the following command to install the version of ASP.NET 2.0 and to install the script maps at the IIS root and under:

  • %SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i -enable

  • Make sure that the status of ASP.NET version 2.0.50727 is set to Allowed in the Web service extension list in Internet Information Services Manager.

  • Note: The build version of ASP.NET 2.0 may differ depending on what the currently released build version is. These steps are for build version 2.0.50727.

    ASP.NET 4.0 , 32-bit version


    To run the 32-bit version of ASP.NET 2.0, follow these steps:
  • Click Start, click Run, type cmd, and then click OK.

  • Type the following command to enable the 32-bit mode:

  • cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

  • Type the following command to install the version of ASP.NET 4.0 (32-bit) and to install the script maps at the IIS root and under:

  • %SYSTEMROOT%\Microsoft.NET\Framework\ v4.0.30319\aspnet_regiis.exe -i -enable

  • Make sure that the status of ASP.NET version v4.0.30319 (32-bit) is set to Allowed in the Web service extension list in Internet Information Services Manager.

  • Then Register the virtual Directory Name:

  • %SystemRoot%\Microsoft.NET\Framework\ v4.0.30319\Aspnet_regiis -s W3SVC/1/ROOT/ your virtual directory Name

  • Notes :
  • We should install the framework Lower to higher version..for Example 1.1,2.0,4.0

  • if we go to install any one version, we should Check 'Web Service Extension' option "prohibit or Allowed"

  • For Example If we install v2.0 in IIS, we should do prohibit v4.0...

  • If we install v1.1 in IIS, we should do prohibit v4.0 and v2.0 option also.


  • For Quick Reference


    For 32bit Version
    To v1.1:

    %SystemRoot%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i -enable

    %SystemRoot%\Microsoft.NET\Framework\v1.1.4322\Aspnet_regiis -s W3SVC/1/ROOT/>"Type ur Virtual Directory Name here"


    v2.0.50727 / v3.5
    --No need to install 3.5 framework,bcz v2.0.50727 also support for v2.0

    %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i -enable

    %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Aspnet_regiis -s W3SVC/1/ROOT/>"Type ur Virtual Directory Name here"


    To v4.0
    %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i -enable

    %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\Aspnet_regiis -s W3SVC/1/ROOT/>"Type ur Virtual Directory Name here"


    Sample Screen for IIS Settings


    Attachments

    Comments

    No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: