How to Deploy or Host Service in IIS - First Timers Guide

By Ashish Yadav → Wednesday, April 2, 2014
 Open IIS
a. Open the command prompt in administrator mode. To do click on Start button then type RUN in search and then in Run window type inetmgr to open IIS. 

Now you will have IIS open like below 

b. Right click on Sites and then click Add Web Site
c. Now a window will open. 

Give any name of your choice as the site name. I am giving name here AadharInfo. You are free to give any name of your choice.
Now click on select and choose ASP.Net v4.0 from the drop down.

Now in the physical path section, we need to give physical path of the service. So to get the physical path of the service, right click on the WCF Service project in visual studio and click open project in windows explorer.

Open the project in windows explorer and from address bar copy the path and paste that below or you can browse also. Just click on browse button and navigate to project folder of the WCF Service.

Now at the Binding section select HTTP. User is free to give any port number. In our metro application we have given the path reference to service at port no 8080, so i am selecting the port as 8080.

In case you choose to use different port number then respectively use that same port number in Adding Service Reference

Do not give any name as host name. Leave it blank 

Check the check box Start Web Site Immediately. 

And now click OK on the window. 

If port no 8080 is used then there is no need to make any changes in the solution. In case there is a change then In solution explorer, on the solution right click and go to add service reference.

You get a Screen similar to below.

Just replace the port number used and click OK. Now you have successfully deployed the Aadhar Service on IIS.
Ashish Yadav

I'm Ashish. BE - Computers by education, Big Data Analyst and Software developer by profession, Ethical hacker by passion. Technology freak, Loves blogging, reading and talking.

No Comment to " How to Deploy or Host Service in IIS - First Timers Guide "