Over a million developers have joined DZone.

Deploy an MVC Application to the Server

DZone's Guide to

Deploy an MVC Application to the Server

In this post, we give a quick rundown of the steps involved in deploying your MVC app to your server using Visual Studio. Let's get to it!

· Web Dev Zone ·
Free Resource

A true open source, API-first CMS — giving you the power to think outside the webpage. Try it for free.

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

Image title


Select your solution in the Solution Explorer, click on BUILD, then Publish Solution.

Image title

Then click on Publish and you will see the following screenshot with your profile details:

Image title

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

After creating this new profile, click the Next tab, then navigate to the connection tab, as shown in the following screenshot:

Image title

Here, select File System and also select your location with the folder where you want to save the build solution. Then click next which takes you to the settings tab.

Image title

Select the configuration as shown above and click next.

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

Steps to Deploy in the Server

Now login to the server and open IIS as shown below:

Image title

Now click 'Sites':

Image title

Click Add Website, which will populate a window as shown below:

Image title

Key in the details as per your configuration requirements.

Then, finally, click ok and it will automatically create your site. Then, right click on that site and choose to browse.

Thanks for reading my article, happy coding!

The New Standard for a Hybrid CMS: GraphQL Support, Scripting as a Service, SPA Support. Watch on-demand now.

web dev ,.net application development ,.net mvc ,server deployments

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}