Creating the first ASP.NET MVC Project

Published on February 16, 2013 by abundantcode

Filed under ASP.NET MVC

Last modified February 16, 2013

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 2682 times

In this article , we will explore how to create the first “Hello World” ASP.NET MVC Project.

How to Create an ASP.NET MVC Project ?

Follow the below steps to create the first ASP.NET MVC Project.

1. Launch Visual Studio 2012 .

2. Click New -> Project

3. This will show the list of all available templates available currently in Visual Studio 2012. Select Web templates from Templates-> Visual C# section.

Creating the first ASP.NET MVC Project

Creating the first ASP.NET MVC Project

4. Select “ASP.NET MVC 4 Web Application” and provide the proper name and location for the project and click OK. Note that Visual Studio 2010 also has the templates for ASP.NET MVC 3 , select the templates as per your requirements.

5. This will display the New ASP.NET MVC 4 Project’s Project template selection dialog . For simplicity , we will select Basic and click OK. The View engine Dropdownlist includes options like “Razor” and “ASPX” view . The Razor view was introduced from the ASP.NET MVC 3 version. Select the View Engine again as per your needs.

Creating the first ASP.NET MVC Project

Creating the first ASP.NET MVC Project

6. Once created , the Visual Studio 2012 will add the necessary files and folders to the Visual Studio solution.

Creating the first ASP.NET MVC Project

Creating the first ASP.NET MVC Project

7. Hit F5 to run the Project .

You might see the “The resource cannot be found.” error since the Basic template does not contain any Views currently . In the next series of articles , we will explore how to add controller or Views to the project.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment


You might be Interested in these Posts

How to read a connection string from web.config file in ASP.NET ?

Assume that you have a connectionstring configured in the web.config file of your ASP.NET applicatio...

Could not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)

There are times when you might get the following error when running the application from Visual Stud...

Building a ASP.NET Web API in Visual Studio 2015

This blog post will explain on how to create a Simple ASP.NET Web API using Microsoft Visual Studio ...