Asp.Net Setup and Deployment



This article will explain about deploying an ASP .NET Web Application using Installers. It will help you in creating Installer files which can be used for deploying your locally built Web Application on a remote server. By using this approach you can use your web application as a Software Application. You just have to install it like any other software.

Step 1.

First of all, you have to create a Asp.Net web application of which you want to create setup. I am assuming if you are here then you already have created Asp.Net application.

Now, we can move ahead. In my case the name of my Asp.Net application is "WebSite1".

Step 2.

Open Visual Studio and follow the following steps :

In my case i am using Visual Studio 2010.

Go to File > New Project.

Step 3.

Expand "Other Project Types". Expand "Setup and Deployment" and Choose "Visual Studio Installer". Make sure the "WebSetup Project" is Selected.

You can name your application as you want. You can also set Location of your choice for the solution.


Step 4.

Now you have to add your existing website of which you want to create setup. In my case it is "WebSite1". Follow the following steps for adding application :

Go to File > Add > Existing Website > Explore Your Existing Application Folder > Click Open Button.


You can see the added project in the "Solution Explorer".

Step 5.

Select "WebApplicationFolder" and follow the following steps :

Go to Action > Add > Project Output.

Make sure your project is selected in the dropdownlist. Select "Content Files" and Click OK Button.

Step 6.

Build your application.

Go to Build > Build Solution.

Step 7.

Now find the Setup of your web application from the path of your application. In my case it is :

Visual Studio 2010 > Projects > WebSetup3 > WebSetup3 > Debug

Double Click on the file for installation.

Choose "Application Pool" as Asp.Net v4.0.

Step 8.

Follow the following steps for checking you application.

Open Internet Information Server (IIS) > Expand Sites > Expand Default Web Site.

Find your currently installed application and follow the below steps :

Right click on currently installed application > Manage Application > Browse.

You can see your application in running with your default browser.


Enjoy and keep Coding.

Give your Valuable Comments.
comments powered by Disqus
Follow me on twitter
About Me
Harpreet Singh
I began programming with C++ when i was 17. Then at the middle of my study .NET came. Then I began to read C# and VB.NET. By the time i learnt SQL and ASP.NET, and developed some websites such as news portals that are active now. Currently i am running my own Software company.
More Articles