.NET Zone is brought to you in partnership with:

Karthikeyan Anbarasan (Karthik) has more than 5 years experience on Microsoft Technologies (ASP.Net, C#.net, VB.Net, ADO.Net, Ajax, SQL Server, SSIS, SSRS, SSAS, Biztalk Server, IBM MQ Server, WCF, WPF and some tools like Infragisitcs, Syncfusion, etc..) Karthikeyan is a DZone MVB and is not an employee of DZone and has posted 45 posts at DZone. You can read more from them at their website. View Full User Profile

Installing and Developing ASP.NET MVC 4 Application

01.05.2012
| 6818 views |
  • submit to reddit

Introduction:

In this article we are going to see how to install required tool for ASP.NET MVC 4 and develop a simple MVC 4 application using the Visual Studio 2010. Asp.Net MVC 4 framework is used for developing reliable application using the Model View Controller pattern. As of now MVC 4 is currently a developers preview and not released as a RTM. We can use this to develop mobile and windows application along with the Windows Azure environment. Let us see the step by step process on installing the MVC 4 framework and create a simple application.

Steps:

For installing the MVC 4 framework, we can download it using the below link

http://www.microsoft.com/web/gallery/install.aspx?appid=MVC4VS2010&prerelease=true

Once we clicked on the above link we can see the Web Platform Installer will be opened and the MVC 4 framework is available for installation as shown in the screen below.

2012-01-04 22h09_16

Now click on Install and we can see the prerequisites required to install the framework as shown in the screen below.

2012-01-04 22h17_44

We can see the installation progresses and once the installation is completed we will be navigated to the finish screen as shown in the screen below.

2012-01-04 22h20_10

Screen after the installation gets completed.

2012-01-04 23h03_53

Now open Visual Studio 2010 Environment and create a new project. We can see the ASP.NET MVC 4 application template available as shown in the screen below.

2012-01-04 23h07_06

Now we can see a window pop up to select the type of the application template. We will select the internet application as shown in the screen below.

2012-01-04 23h09_33

Now click on OK to proceed further and we can see the application opened in the Visual Studio IDE as shown in the screen below.

2012-01-04 23h10_47

Now to check the default template project look like just build and execute the application by pressing F5 and we can see the MVC 4 application opened as shown in the screen below.

2012-01-04 23h12_28

Now we are well set to make changes to our MVC 4 application as per the requirement.

References
Published at DZone with permission of Karthikeyan Anbarasan, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)