Click here to Skip to main content
15,887,812 members
Articles / All Topics

Installing a Production Server for ASP.NET MVC 2

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
18 Dec 2010CPOL2 min read 12.3K   2  
Installing a Production Server for ASP.NET MVC 2

Introduction

Two days ago, I was asked to help with a production server installation. Installing a Production Server for ASP.NET MVC 2In the customer environment, they built an ASP.NET MVC 2 application which they wanted to deploy. I found a very excellent post that Jon Galloway wrote about this subject and used it in at customer. In the post, I’ll summarize some of the options that I used when we installed the production server for ASP.NET MVC 2.

Web Platform Installer

I wrote about the WebPI in the past. This option is the best option for installing all the server components and not only ASP.NET MVC. It will require that you have a desktop access to the server (remote connection or direct access). At the customer, this option didn’t work. For some reason, the installation asked that a Visual Studio 2008 SP1 will be installed on the server. Since it is a production server, the existence of VS is not necessary.

Bin Deployment

In this option, you deploy all the MVC assemblies within your application. Phil Haack wrote about this option and you can explore his post from here. I didn’t like this option since I preferred that the server will have the relevant assemblies installed in it. Since there are other MVC applications in development which will be hosted in the customer’s server, we didn’t choose this option at the end (although they used it in the first place) .

AspNetMVC2 MSI Installer

In this option, you can download the installer for the ASP.NET MVC 2 and install it. Running the installer will install the MVC runtime along with MVC tooling. At the customer, the MSI produced the same error that the WebPI raised. What we did was to open the MSI package and install only the runtime environment. To achieve that, you can run the following instruction from the command line:

AspNetMVC2_VS2008 /x:[your directory name]  

After the MSI will open to the directory you wrote go to the mvcruntime directory and run the installation of the runtime. After doing that, the MVC runtime was installed on the production server.

Summary

Let's sum up. I gave a few options for installing a server for ASP.NET MVC deployment. The best way is to use the WebPI but at the customer we didn’t have this privilege. I encourage you to read what Jon Galloway wrote in his post since it really helped me.


This article was originally posted at http://feeds.feedburner.com/GilFinkBlog

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead sparXys
Israel Israel
Gil Fink is a web development expert and ASP.Net/IIS Microsoft MVP. He is the founder and owner of sparXys. He is currently consulting for various enterprises and companies, where he helps to develop Web and RIA-based solutions. He conducts lectures and workshops for individuals and enterprises who want to specialize in infrastructure and web development. He is also co-author of several Microsoft Official Courses (MOCs) and training kits, co-author of "Pro Single Page Application Development" book (Apress) and the founder of Front-End.IL Meetup. You can read his publications at his website: http://www.gilfink.net

Comments and Discussions

 
-- There are no messages in this forum --