18Dec
How to deploy an ASP.NET MVC application with out using the compiled dll?
Posted by admin as .Net, Asp.Net, Technology, Visual Studio, Web
On some occasions you might want to deploy the Asp.Net MVC application to avoid compiling it yourself etc. You can achieve this by following the below steps
- Create an ASP.NET website project in Visual Studio
- Add a reference to the System.Web.Mvc.dll (and any other DLLs that your application might need)
- Copy the web.config from regular ASP.NET MVC project and make all additional changes that you need for your web application.
- Place all your controllers and models in ~/App_Code folder.
- Place all your views ~/Views/Home/Index.aspx (The usual location where Views are in a regular MVC application)
- Run the application and you are good to go.
Of course there are couple of limitations to this approach like You will not get the addition tooling support from Visual Studio that it usually provides for an MVC.
