Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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

Bugsnag monitors application stability, so you can make data-driven decisions on whether you should be building new features, or fixing bugs. Learn more.

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

Steps

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!

Monitor application stability with Bugsnag to decide if your engineering team should be building new features on your roadmap or fixing bugs to stabilize your application.Try it free.

Topics:
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 }}