How to Create Asp.net Mvc Application

Lesson Overview

In this lesson,I will show you step by step tutorial to Create Asp.net Mvc Application in visual studio 2013. With few changes in these steps you can create the application in other versions of visual studio.

How to Create Asp.Net Mvc Application

1. Create New Project

Open your visual studio.

Then click on New Project Or Go to File > New > Project

Shortcut : Ctrl + Shift + N

Create New Application in Visual Studio 2013

 

2. Select Asp.Net Web Application

Select Asp Web Application for MVC 5

Select Web Under Visual C#. We are going to Create Asp.net Mvc 5.0, So Make Sure that .Net Framework 4.5 Or higher version of .Net Framework is Selected. Select ASP.NET WEB APPLICATION.

Name your application, I will name it as ContactBook. Click on OK.

3. Select Mvc Template

Select Mvc Template

Select Mvc Template, Keep the other options as it is. Then Click OK.

Now you have a brand new Asp.Net Mvc application.

Fresh Asp.Net Mvc Application

4. Run Application

In order to run this application, you have two options

  • Run Application With Debug Mode

Press F5 Or Press Start Button (  )

This mode is for debug purpose, Break point works only in this mode.

  • Run Application without Debugging

Press Ctrl + F5 Or Go to DEBUG > Start Without Debugging.

For now, Run Application without debug mode. Then it will open the application in browser new tab.

Default Page In Mvc Application

Application URL will be localhost:portnumber in my case it is  localhost:53322.
If you change URL to localhost:53322/Home/Index, You can see the same view, because it is the default URL or View.
We will discuss about default URL and URL routing in Mvc in upcoming chapters.

Previous Lesson
Share this post :
  •  
  •  
  •  
  •  
  •  
  •  

Comments are closed