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.
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".
Open Visual Studio and follow the following steps :
In my case i am using Visual Studio 2010.
Go to File > New Project.
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.
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 asp.net 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".
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.
Build your application.
Go to Build > Build Solution.
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.
Follow the following steps for checking you asp.net 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.