简体   繁体   中英

Install ASP.NET MVC 4 from the Web Platform Installer

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?

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

I too was having this problem it would not install MVC 4, but i have managed to install it by downloading the ASP.NET MVC 4 provides a Model-View-Controller (MVC) framework for developing web applications http://www.microsoft.com/download/en/details.aspx?id=27419 .

Once it has installed it will say that it was unsuccessful, but id you check your VS Studio 2010 you will be able to create and run an MVC 4 product

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM