Simple example for how to host or deploy the Web Site.

Now with the help of WebDeploymentSetup provided by Microsoft, web deployment is very easy.

You can download it from following path.

http://www.microsoft.com/downloads/details.aspx?familyId=0AA30AE8-C73B-4BDD-BB1B-FE697256C459&displaylang=en

Install the WebDeploymentSetup.msi. Now follow the following steps.

  1. First Create one Web Site. (Not a Web Application)
  2. Right click on Web Site. You will get “Add Web Deployment Project” tab, click on it.
    image
  3. Click on “Add Web Deployment Project”, it will create one more project in solution.
    image image

4.  Now build the WebSite2_deploy project.

5. Now Click on solution and select the WEB Deployment Project.

image

6. You will get following screen.

image

7. Right click on “Web Application Folder” and click on “Add” and Select “Prolect Output” tab.

image

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.

image

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…..  

Advertisement

About miteshisheth
Believe in sharing knowledge.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.