Friday, January 6, 2012

Register ASP.NET 4 on IIS

I'm doing some work with the release candidate of System Center 2012 - Operations Manager. It requires .NET Framework 4 and I made the mistake of installing .NET Framework 4 before installing IIS on the server. As a result, ASP.NET for .NET Framework 4 is not registered in IIS.

Happily it's an easy fix:
  • Open a command prompt
  • Change to C:\Windows\Microsoft.NET\Framework64\v4.0.30319
  • Run aspnet_regiis.exe -i
 After registering you still need to enable it in IIS Manager.
  • Open IIS Manager and browse to the server
  • Double-click ISAPI and CGI Restrictions
  • Allow both ASP.NET v.4 instances
  • Run iisreset.exe

No comments:

Post a Comment