Simple example for how to host or deploy the Web Site.
May 7, 2010 Leave a Comment
Now with the help of WebDeploymentSetup provided by Microsoft, web deployment is very easy.
You can download it from following path.
Install the WebDeploymentSetup.msi. Now follow the following steps.
- First Create one Web Site. (Not a Web Application)
- Right click on Web Site. You will get “Add Web Deployment Project” tab, click on it.
- Click on “Add Web Deployment Project”, it will create one more project in solution.
4. Now build the WebSite2_deploy project.
5. Now Click on solution and select the WEB Deployment Project.
6. You will get following screen.
7. Right click on “Web Application Folder” and click on “Add” and Select “Prolect Output” tab.
8. Once we click on “Project Output”. Following window prompt. Select our WebSite2_deploy project (Which we have created using WebDeploymentSetup.msi)
9. Now build the project and check that in folder. Now .msi file will be there. Click on .msi file.
10 Now it will ask for the Virtual directory , in IIS. If you have server, you can even create the site and give the Virtual directory. In client computer, allow only to create virtual directory.
11 Select the appropriate virtual directory and finish the installation.
12. Now if you check in IIS, you will get the “websetup1_man_deploy” virtual directory.
This is the easiest way to host web site into IIS using .msi…..


