---
title: "Start with ASP.NET MVC 4"  
description: "Hi everyone in this post I will teach you the basics of asp.net mvc4 web application. How to start with asp.net mvc4."  
author: "Anonymous User"  
published: 2015-02-09  
updated: 2019-11-24  
canonical: https://www.mindstick.com/articles/1571/start-with-asp-dot-net-mvc-4  
category: "asp.net mvc"  
tags: ["mvc4"]  
reading_time: 2 minutes  

---

# Start with ASP.NET MVC 4

Hi everyone in this post I will teach you the basics of asp.net mvc4 [web application](https://www.mindstick.com/articles/13069/progressive-web-application-pwas-all-you-need-to-know-about). How to start with asp.net mvc4.\

In my previous post I’ll intruduced about CRUD [Operations Using Entity](https://www.mindstick.com/forum/158713/how-do-perform-crud-create-read-update-delete-operations-using-entity-framework-in-mvc) Framework Code-First Approach\

## Description:

Asp.net mvc4 is a powerful framework for developed robust, scalable web application. You will learn the fundamental of [mvc application](https://www.mindstick.com/articles/23249/rdlc-report-in-mvc-application) as well as some of new features of Asp.Net MVC4, such as **mvc routing, new user management and authentication system, bootstrap, angular js etc.**

Creating your First Application:

Open [visual studio](https://www.mindstick.com/articles/12378/visual-studio-for-mac-is-out-of-beta-preview-now-officially-available) 2012 >> File >> New Project, then select visual c# on the left, then web and then select **ASP.NET MVC 4 Web Application.** Name [your project](https://www.mindstick.com/forum/156583/best-way-to-link-bootstrap-file-in-your-project) “StudentManagement” and then click ok.

![Start with ASP.NET MVC 4](https://www.mindstick.com/mindstickarticle/81dafbc2-3fe8-4648-8d7a-3c7456a50c81/images/77f2a106-214d-461c-b5d0-a86d11f82c49.png)

In the New **ASP.NET MVC 4 Project dialog** select Empty and then click ok

![Start with ASP.NET MVC 4](https://www.mindstick.com/mindstickarticle/81dafbc2-3fe8-4648-8d7a-3c7456a50c81/images/fc4fe9ba-24de-4be0-b50c-13e900833c9c.png)

*Figure 1: Project Type*

**Empty:** The empty template created the minimum references and resources required to run an asp.net mvc application. As you can see below image Models, Controllers, App_Data are completely empty folder and view folder only contain web.config file and Global.asax file and web.config. App_Start folder contains 3 [configuration files](https://www.mindstick.com/blog/570/introduction-to-configuration-files-in-c-sharp) (FilterConfig.cs, RouteConfig.cs and WebApiConfig.cs).

![Start with ASP.NET MVC 4](https://www.mindstick.com/mindstickarticle/81dafbc2-3fe8-4648-8d7a-3c7456a50c81/images/aa984139-28c4-4067-8421-9e8d0d65833a.png)

*Figure 2: Structure of the project*

Click F5 to start debugging. F5 causes visual studio to start **IIS Express** and run your web application. Visual studio then launches a browser and opens the application. This application runs successfully but not give any output on browser and because our application not found any resource if you want to any output you have to add controller inside Controller folder.

**HomeController.cs Code:**

```
public string Index(){    return "ASP.NET MVC 4 for Beginners";}
```

Now runs our application and found desire output on browser.

**Output:**

**![Start with ASP.NET MVC 4](https://www.mindstick.com/mindstickarticle/81dafbc2-3fe8-4648-8d7a-3c7456a50c81/images/a3c14b66-e026-4a91-8c3f-07c666300e62.png)**

## Conclusion:

In this article you learn how to build a simple web application in ASP.NET MVC 4. In my next Article I’m explain about Working with Controller in MVC 4

---

Original Source: https://www.mindstick.com/articles/1571/start-with-asp-dot-net-mvc-4

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
