Skip to main content


 

Symptoms


We are struggling to register a WCF service using just the computer name.
The FQDN works, but we want to "standardize" the way we use services and we specifically want to use just the computer name. (Instead of the FQDN)
 

Diagnoses


When hosting a Windows Communication Foundation (WCF) service under Internet Information Services (IIS) 7.0, you may want to provide multiple base addresses that use the same protocol on the same site. This allows the same service to respond to a number of different URIs. This is useful when you want to host a service that listens on http://www.sitename.com and http://sitename.com. It is also useful to create a service that has a base address for internal users and a separate base address for external users. For example: http://internal.sitename.com and http://www.sitename.com.
 

Resolution

We found the following article on the MSDN web site...
Title: Supporting Multiple IIS Site Bindings
URL: https://msdn.microsoft.com/en-us/library/ee358763(v=vs.110).aspx

After adding the following line to the WCF service's config file, we were able to register the WCF service using the computer name and the FQDN.




 
Be the first to reply!

Reply