How to change .NET framework version without restarting IIS

When we want to change the .NET Framework version for an existing site, IIS will display a warning message saying it will restart the W3SVC service.
We may not want to do this, as it will stop other websites running in IIS.

Below is Step By Step instruction to change the .NET framework version without restarting the W3SVC service.

Step 1 : In IIS navigate to the website (which requires change in .net framework version)

Step 2 : Right click on the site and select All Tasks> Save Configuration to a File and save the configuration to a file.

Step 3: Open the configuration file and look for the IISWebServer tag which contains the siteid.
Below is a sample line in the configuration file:
IISWebServer Location ="/LM/W3SVC/1890249283"
the number 1890249281 is the site id.

Step 4 : Navigate to C:\windows\microsoft.net\Framework\<new framework version>\
for example if you want to switch the site to .NET Framework 4.0 then navigate to the 4.0 framework folder found usually in C:\Windows\Microsoft.NET\Framework\v4.0.30319

Step 5 : type aspnet_regiis.exe - norestart -s W3SVC\<site id>

This should switch the framework on the site to the new one.

Comments

Anonymous said…
Awesome! Its in fact awesome paragraph, I have got much clear idea regarding from this piece
of writing.

Have a look at my web site: Http://webhostingtop3.com/review/ix-web-hosting/
Anonymous said…
Since the admin of this site is working, no question very quickly it
will be famous, due to its quality contents.


My homepage cheapwebhostingfirms.com
Anonymous said…
I am not sure where you are getting your info, but great topic.
I needs to spend some time learning more or understanding more.
Thanks for wonderful info I was looking for this info for my mission.


Feel free to surf to my web site ... vps dedicated hosting solutions
Anonymous said…
I've been surfing on-line more than 3 hours these days, yet I by no means discovered any attention-grabbing article like yours. It is pretty price enough for me. In my opinion, if all website owners and bloggers made good content as you probably did, the internet might be much more useful than ever before.

Here is my homepage; naturalanxietyremediestips.com
Anonymous said…
I have to thank you for the efforts you have put in penning this blog.
I really hope to check out the same high-grade blog posts by you in
the future as well. In fact, your creative writing abilities has encouraged me to get my own website
now ;)

Have a look at my blog :: Eleven2 Testimonies

Popular posts from this blog

Drupal - How to display webform node in a block?

Error when Installing SQL Server 2008 R2 Management Studio

Technical Team Lead Interview Questions