Deploy An MVC Application To Server

Today here, I show you how to deploy your .NET MVC web application to a Web server after you've finished development and testing the application.


Select your solution in solution explorer and click on BUILD, then Publish Solution.

solution explorer

Then click on publish and you will see the following screenshot with profile details.


Now, click on profile and create your own new profile.

After creating new profile click on Next tab, then it navigates to Connection tab with the following screenshot,

navigates to Connection

Here in Target location, select File System and also select you location with folder where you save the build solution and then click next which navigates to Settings tab.

settings tab

Select configuration as shown above and click on next.

Then preview and publish, once you published successfully, go to target location folder and copy the folder to deploy it into the server.

Steps to deploy in server

Now login to server and open IIS,


Now click Sites.

click Sites

Click Add Website, it will populate a window as in the following,

Add Website

Key in the details, as per your requirement.

Then click OK and automatically site will create and right click on site and select Browse.