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.
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.exefrom here, rename the.exeto.zipand inside themvcruntimesub-folder you’ll find theAspNetMVC2.msifile.Then you have to run: