IIS and Multiple Version of .NET Framework


I have seen this question in forums as well as many emails on how to configure two versions of the .NET Framework to work with IIS for different sites.  I thought I would share the steps outline below that someone wrote: 




  1. Install both versions of the Frameworks on the IIS box.


  2. In this case all the web sites are already running on version 1.143 and we want a new site to work with version 2.0.50727.


  3. Using aspnet_regiis –i; register only one version for the IIS.


  4. Open IIS.


  5. Click on Web Service Extensions.


  6. Click on Add a new Web service Extension.


  7. Add the Prompt: Put in a legible name for the extension: e.g.: ASP.NET v2.0.50727


  8. Click on Add for required files.


  9. Select the: aspnet_isapi.dll from the correct directory.


  10. Correct directory as in: C:\WINNT\Microsoft.NET\Framework\v2.0.50727


  11. Since this is the new version that we want to work with for the new site.


  12. Check the box that says: “Set extension status to Allowed”


  13. Click OK and make sure the extension is running.


  14. Next: Select the website / virtual directory that need to be run in the new version of the framework.


  15. Right click and then select Properties.


  16. Go to the Home Directories Tab.


  17. Click on the Configuration button.


  18. On the Mappings Tab: Click Add to add an Application Extension.


  19. Click on Browse to choose the same executable DLL you had chosen earlier for the Web service extension.


  20. C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll


  21. Leave the rest of the default selections to be the same.


  22. You are good to go. Test the pages for both the frameworks and they should both work now.

 



 


Comments (1)
  1. In this posting in his MSDN Blog, Dan Sellers has detailed the steps needed to safely configure IIS to…

Comments are closed.

Skip to main content