Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

should I install asp.net mvc 2 on a deploy machine?

I'm deploying an asp.net mvc 2 app on windows 2008 R2 and I get error that there is no system.web.mvc.dll, Should I install mvc2 on the deploy machine ?

like image 387
Omu Avatar asked Aug 03 '10 08:08

Omu


People also ask

What is Microsoft ASP.NET MVC 2?

The Model-View-Controller (MVC) pattern is an architectural design principle that separates the components of a Web application. This separation gives you more control over the individual parts of the application, which lets you more easily develop, modify, and test them. ASP.NET MVC is part of the ASP.NET framework.

Is ASP.NET MVC outdated?

ASP.NET MVC is no longer in active development.

Is it true that MVC itself hosted on an IIS server and a self Userpipeline?

Net Pipeline, on the other hand MVC 6 has a feature that makes it better and that feature is itself hosted on an IIS server and a self-user pipeline. The configuration system provides an environment to easily deploy the application on the cloud. Our application works just like a configuration provider.


1 Answers

You can actually deploy without MVC being installed on the server by deploying the MVC DLLs with your project. Put the following DLLs into your bin directory and it will run fine

System.Web.Mvc
System.Web.Routing
System.Web.Abstractions

If your server is on .Net 3.5 SP1 then you only need to deploy the Web.Mvc DLL, if its not running SP1 then you will need to deploy all 3.

There is an article by Phil Haack here detailing this more http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx

like image 86
Gavin Avatar answered Oct 20 '22 10:10

Gavin