Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is asp.net MVC2 included in .net 4.0 framework?

I've installed .net 4 in the server.
Now I don't know if I must install the MVC 2 for VS2008 or what because I got this error:

Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

like image 310
Eduardo Molteni Avatar asked Apr 13 '10 21:04

Eduardo Molteni


People also ask

What is ASP.NET mvc2?

ASP.NET MVC 2 is a framework for developing highly testable and maintainable Web applications by leveraging the Model-View-Controller (MVC) pattern.

Is ASP.NET MVC part of .NET framework?

The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in the System. Web.

Is ASP.NET 4.0 still supported?

As previously announced, starting January 12, 2016 Microsoft will no longer provide security updates, technical support or hotfixes for . NET 4, 4.5, and 4.5. 1 frameworks. All other framework versions, including 3.5, 4.5.

Does ASP.NET Core support .NET framework?

NET Core, the following ASP.NET Core 2.1 (latest patched version only) packages will be supported on the . NET Framework and follow the support cycle for those . NET Framework versions.


1 Answers

VS 2010 comes with MVC 2, but it's not a part of the .NET Framework proper. This means that if you go download the .NET Framework 4 redistributable, it will not include the MVC 2 runtime.

But since MVC is bin-deployable, this is fine. Your application - when deployed to a .NET 3.5 SP1 or .NET 4 server - will just copy System.Web.Mvc.dll to its /bin folder, and everything will run as expected. MVC runs just fine in Medium Trust.

To do a server wide install you need to download AspNetMVC2_VS2008.exe from here, rename the .exe to .zip and inside the mvcruntime sub-folder you'll find the AspNetMVC2.msi file.

Then you have to run:

msiexec /i AspNetMVC2.msi /l*v .\mvc.log MVC_SERVER_INSTALL="YES" 
like image 157
Levi Avatar answered Sep 28 '22 16:09

Levi