Install ASP.NET MVC 4 from the Web Platform Installer

shanabus picture shanabus · Feb 17, 2012 · Viewed 18.2k times · Source

When I launch the installer, I see the product details of the ASP.NET MVC 4 framework. When I click 'Install' it then gives me an Error dialog:

ASP.NET MVC 4 installer (Visual Studio 2010) is incompatible with Microsoft .NET Frameowrk 4.5

After I click Ok, It shows me the prerequisites page with "I Decline" and "I Accept" is grayed out and not clickable.

The Software Requirements page says:

The ASP.NET MVC 4 components for Visual Studio require PowerShell 2.0 and either Visual Studio 2010 with Service Pack 1 or Visual Web Developer Express 2010 with Service Pack 1.

What am I doing wrong?

Answer

Magnus Johansson picture Magnus Johansson · Feb 17, 2012

The installation notes says:

This release is not compatible with the .NET Framework 4.5 Developer Preview. You must uninstall the .NET 4.5 Developer Preview before installing the ASP.NET MVC 4 Beta.

You probably have that installed, and should therefore uninstall .NET 4.5 Dev Preview.

UPDATE:
One alternative way is to only install the needed MVC 4 components using NuGet.
MVC4: From NuGet
Web API: ASP.NET Web API and HttpClient Available on NuGet