Prerequisites |
Follow these steps to ensure that ASP.NET is working properly.
First, in the Windows registry, search for the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Components registry key. This is the IIS Setup key that contains the components that have been enabled in IIS.
Click the Windows Start key and click Run. In the Run window, type regedit.exe and click OK. This displays the Windows registry.
Locate the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\INetStp\Components registry key.
If you are using ASP.NET 4.5, ensure that ASPNET45 and NetFxExtensibility45 have been set to 1.
If you are using an older version, ensure that ASPNET, NetFxEnvironment, and NetFxExtensibility have been set to 1.
Next, check whether the current .NET Framework version is 4.0. To do this on Windows Server 2008:
Go to IIS Manager.
Click Start > Administrative Tools > Internet Information Services (IIS) Manager.
Click on the name of your server to display the Actions Panel.
If a dialog box appears asking you whether you want to get started with Microsoft Web Platform, click No.
In the Actions Panel, click Change .NET Framework Version. A dialog box appears, displaying the version of .NET Framework that is currently in use.
Verify that the version starts with 4.0, and click OK to close the dialog box.
In the Actions Panel, click View Application Pools to check whether the application pools .NET Framework version is 4.0:
If you can't find ASP.NET or .NET, open a Command Prompt window in administrator mode and run the following command from the folder in which you have installed .NET Framework:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis –I
Replace v4.0.30319 with your version of .NET Framework. Restart your server after completing this command.
If you are using Windows Server 2012, see IIS 8.0 Using ASP.NET 3.5 and ASP.NET 4.5 for details on how to verify that .NET Framework 4.0 is installed on your server.