---
title: "Deploying ASP.NET MVC Application"  
description: "Hi everyone in this post I ‘m explaining about deployment your mvc application."  
author: "Anonymous User"  
published: 2015-02-24  
updated: 2019-09-07  
canonical: https://www.mindstick.com/articles/1605/deploying-asp-dot-net-mvc-application  
category: "asp.net mvc"  
tags: ["c#", "mvc4"]  
reading_time: 2 minutes  

---

# Deploying ASP.NET MVC Application

Hi everyone in this post I ‘m explaining about deployment your [mvc application](https://www.mindstick.com/articles/23249/rdlc-report-in-mvc-application).\

##### Description:

This tutorial shows you how to build a secure [ASP.NET MVC](https://www.mindstick.com/articles/1571/start-with-asp-dot-net-mvc-4) 4 web app. You deploy the application to Azure.

This tutorial assumes that you have no [prior experience](https://answers.mindstick.com/qa/94779/can-i-use-android-studio-and-create-an-app-with-no-prior-experience-in-coding-in-any-language-how-easy-is-it) using Azure. On completing this tutorial, you'll have a [secure data](https://www.mindstick.com/forum/160203/how-to-apply-encryption-authentication-and-authorization-mechanisms-to-secure-data-in-sql-server)-driven web application up and running in the cloud and using a [cloud database](https://www.mindstick.com/blog/738/cloud-database-solutions).

When you build an ASP.NET MVC application and are ready to deploy it to your [hosting provider](https://answers.mindstick.com/qa/112148/what-are-the-main-considerations-for-choosing-a-cloud-hosting-provider-for-my-application), there are a set of assemblies you’ll need to include with [your application](https://answers.mindstick.com/qa/95487/how-do-you-troubleshoot-when-your-application-link-is-not-responding) for it to run properly, unless they are already installed in the [Global Assembly](https://www.mindstick.com/forum/158850/what-is-the-purpose-of-the-global-assembly-cache-gac-in-dot-net-core) Cache (GAC) on the server.

##### Deploy an ASP.NET MVC App to IIS:

Open [visual studio](https://www.mindstick.com/articles/12378/visual-studio-for-mac-is-out-of-beta-preview-now-officially-available) >> File >> New Project >> ASP.NET MVC 4 [Web Application](https://www.mindstick.com/articles/13069/progressive-web-application-pwas-all-you-need-to-know-about)

![Deploying ASP.NET MVC Application](https://www.mindstick.com/mindstickarticle/4f16a224-0bcc-4767-a31d-913b98f55ec7/images/ec1728d6-9d2d-4b20-871a-ebcbedc63612.png)

Give the application name and click ok, after click ok open a pop window and you

select project type and click ok.

![Deploying ASP.NET MVC Application](https://www.mindstick.com/mindstickarticle/4f16a224-0bcc-4767-a31d-913b98f55ec7/images/c8df2315-67ac-481d-92c7-a78c252c30d7.png)

Now our web site is ready to use. You can run your application press F5.

Now from the Solution Explorer right click and select “Publish”

![Deploying ASP.NET MVC Application](https://www.mindstick.com/mindstickarticle/4f16a224-0bcc-4767-a31d-913b98f55ec7/images/158fb299-fed7-47c3-a793-2b1d33920749.png)

Select New Profile and give a name.

![Deploying ASP.NET MVC Application](https://www.mindstick.com/mindstickarticle/4f16a224-0bcc-4767-a31d-913b98f55ec7/images/cc076863-2315-4935-9d16-1bac51fb6a3a.png)

Next setup the Publish Method as Web Deploy, provide the server name, this can be a non-development system also; the Site Name, whether it’s the root site or a sub-site of the root site. Click Validate connection to validate.

![Deploying ASP.NET MVC Application](https://www.mindstick.com/mindstickarticle/4f16a224-0bcc-4767-a31d-913b98f55ec7/images/18310700-5356-49b8-a2b2-4d6222415f4a.png)

The next two steps are optional and you can hit Publish here itself. But let’s walk through the steps.

Here I have unchecked the ‘User this connection string…” checkbox. This runs an additional transform apart from the default deployment transform that is executed on web.config, web.debug.config etc.

Click next or Publish from here.

![Deploying ASP.NET MVC Application](https://www.mindstick.com/mindstickarticle/4f16a224-0bcc-4767-a31d-913b98f55ec7/images/11783ed9-bf38-488a-809c-896807363b9c.png)

If you click next, you get an opportunity to see the changes being deployed. For first deployment it’s everything, thereafter only the changes are deployed.

![Deploying ASP.NET MVC Application](https://www.mindstick.com/mindstickarticle/4f16a224-0bcc-4767-a31d-913b98f55ec7/images/5f4c6741-4df3-464e-923a-f4d48b863b59.png)

Once you hit Publish, monitor the Output Window till the Build Succeeded and Publish Succeeded messages appear.

![Deploying ASP.NET MVC Application](https://www.mindstick.com/mindstickarticle/4f16a224-0bcc-4767-a31d-913b98f55ec7/images/92b59035-2e45-4b73-ac15-f46742fd1684.png)

---

Original Source: https://www.mindstick.com/articles/1605/deploying-asp-dot-net-mvc-application

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
