Home > Articles > IIS Articles > How to change .Net framework version without restarting W3SVC service in IIS?

How to change .Net framework version without restarting W3SVC service in IIS?

by Thamil   on Sep 09, 2014   Category: IIS  | Level: Intermediate  |  Views: 3028    |  Points: 100   
Like this article? Bookmark and Share:
In this short article I will explain how to change the .net framework version in the IIS for the specific application without restarting W3SC services.


Recently I have upgraded my .net project from .net framework 2.0 to 4.0. I will share my experience so that it will help others when doing the same activity. Microsoft provided the facility to change the framework version in IIS manager itself. See the below website properties.

Right click on the Website in IIS (version6) and click on Properties, you will get the above window and select ASP.NET tab then change the ASP.NET version, IIS manager popup the confirm message as like below.

“Changing the Framework version requires a restart of the W3SVC service. Alternatively, you can change the Framework version without restarting the W3SVC service by running: aspnet_regiis.exe -norestart -s IIS-Viirtual-Path
Do you want to continue (this will change the Framework version and restart the W3SVC service)? ”
By clicking “Yes” IIS manager restart the W3SVC service and other website will not available during W3SVC restart. To avoid restarting this W3SVC service during framework version changes follow the below steps. 


Open command prompt and path needs to be pointed with where new framework version installed.


Run the command “aspnet_regiis.exe -lk” see the below sample command

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe –lk


Above command would display the list of website names which is hosted in that IIS. See the sample below


Step4: Select the website name which you want to change the version and run the below command, suppose we will take the website “W3SVC/1/Root/TS_TEST” to convert.


Execute the below command with norestart option aspnet_regiis -s
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe –s W3SVC/1/Root/TS_TEST -norestart

That’s it, above command would change the version to 4.0 for the website “TS_TEST” without restarting W3SVC service. Below screen shows the complete step.

Now verify in the IIS manager for specific website framework version. I hope this will help when you change website framework version without restarting W3SVC service.

Like this article? Bookmark and Share:

Most viewed Articles

User Comments

No response found, be the first to review this article.

Submit feedback about this article

Please sign in to post feedback

Latest Posts