Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set new sites in IIS 7.5 to be .NET 4 by default

I just reinstalled Windows 7 and IIS is creating new .NET 2.0 sites by default. At one point I had it set to create .NET 4.0 sites by default - how do I set that up again?

like image 844
kenwarner Avatar asked Jan 31 '12 02:01

kenwarner


People also ask

What is by default path of IIS website?

It is common knowledge that the default folder for IIS websites is found in the C:\inetpub\wwwroot.


2 Answers

  1. Select the root element in the tree on the left – it contains the name of the server.

  2. Click on the "Change .NET Framework Version" link on the right panel. You will now see the "Change .NET Framework Version" dialog.

  3. Select the .NET 4.0 framework from the drop down list.

  4. Click "OK"

like image 122
Akhil Avatar answered Dec 12 '22 00:12

Akhil


What worked for me was:

  1. Click on "Application Pools" in the tree on the left
  2. Click on "Set Application Pool Defaults..." on the right panel.
  3. Set the ".NET Framework Version" to v4.0
like image 24
lau Avatar answered Dec 11 '22 23:12

lau