×

Adding a WCF website to IIS

Last updated: July 19, 2022

Log on to your server using an administrator account and open up Internet Information Services. After opening up IIS, choose to add a new website by right clicking sites within IIS and select Add Website.

Settings panel for IIS

Fill in the dialog

Fill in the dialog as it appears, below is a screenshot of our working example but first the stuff that you can fill in:

  1. Site name: this can be any name in text.
  2. Application Pool: by default a new one gets created however you can choose to use the default one, either will work.
  3. The physical path is the path where you have placed the received files for the WCF service. This package includes a service.svc and web.config file.

BINDINGS

  1. Type: you can use any of the protocols listed there, however we strongly recommend to always use HTTPS.
  2. IP Address: to which IP this website will bind itself, All Unassigned is most common but it really depends on the architecture your IT department has in mind.
  3. Port: website listening port, combination of hostname, ip assignment and port has to be unique else it cannot start the website.
  4. Hostname: in case of non-unique port it has to be unique and Require Server Name Indication needs to be turned on if that’s the case.
  5. NOTE THAT YOU ARE FREE TO USE YOUR REGULAR SETTINGS IN IIS! THIS IS JUST AN WORKING EXAMPLE.
  6. SSL Certificate: shows certificates in the store, use a valid one that aligns with your settings as you put them up within the bindings.
Website settings for IIS

Once you have filled in the above, and placed the correct files in a IIS designed directory, you can start the website and check the URL you created to see if it works. Should look like this:

XML code