This article is in continuation of the previous one in which we have created a simple dot net web service.

First of all click on Build and than on Publish.

Publishing Our Web Service

On the next screen provide setting for the publishing. Like enter a publish profile name. Keep publish method to File System. Specify a Target Location where the published files will be saved.

Publishing Settings


Now open Internet Information Services Manager. We can do this by typing inetmgr in RUN dialog or Administrative Tools from Control Pannel. When the IIS Manager is open. Right Click the server name and click add Website.

IIS Configuration for hosting our web service. Add a new site to the application pool.

This will open the add website dialog. Enter a site name, application pool name, provide the Physical path of the published files of our web service and provide a port number like 8082 etc.

Add website settings

Now check the application pool.

Website created in IIS application pool

Right click on the website in IIS Manager and click Browse Website. you will see your web service up and running.

Note:- this tutorial can  be used to publish any website or web service. The steps are the same