Total Pageviews

13 April 2012

Visual Studio Create Setup project to deploy web application in IIS

Step1: First Open visual studio ---> Create new Project (File ---> New ---> Project)
Step 2: Our Project is ready with sample page Now Add new Setup project for our project for that
Go to File ---> Add ---> New Project
Step3: Whenever we click on New Project another window will open in that
Select Other Project Types ---> Setup and Deployment ---> Web Setup Project ---> Once we select Web Setup project give a name and click OK
Setp4: Now setup project has added to our application that would be like this
Step5: After add setup project open Solution Explorer ---> Right click on Setup project ---> Add ---> Project Output
Step6: Once we click on Project Output it will open another window to select required output files in that window select Primary Output, Content Files and click OK

Here we selected two options one is Primary Output and another one is Content Files because if we add Primary Output it will add only files which are in bin folder and if we select Content Files option also then it will add .aspx files and web.config file to setup project.

After Add Primary Output and Content Files to our Setup project that would be like this
Now you should rebuild your solution file and setup file once you rebuild it go to your project folder and check setup project folder you will find setup file you can run your setup file directly from that folder or right click on your setup project in visual studio and select Install
Once you click on Install it will display welcome wizard in some cases may be you have a chance to get error like “The installer was interrupted before application could be installed. You need to restart installer to try again” to solve this problem check this post the install was interrupted before application could be installed.
Now click next in next screen we will see options Site, Virtual Directory and Application Pool fill these options and click Next button
Now open your IIS by type “inetmgr” in Run and check your IIS if that contain our installed application or not
If you want to uninstall then go to control panel.
ambrosia-amrit.blogspot.in

No comments:

Post a Comment

Contact Form

Name

Email *

Message *