WCF services hosted in IIS
Today I have been playing with a WCF service hosted in IIS. Previously, I have always used the self-hosted services running from a console application.
I am having issues with IIS hosting because although the service code is running correctly, the client is throwing a response error because the connection with the server is being unexpectedly closed. Still haven’t figured this one out.
Tonight, I have been doing a little bit of reading about this topic and came across this interesting note from the Hosting Services page in the SDK.
The message-based activation provided for an WCF service by IIS 5.1 on Windows XP blocks any other self-hosted WCF service on the same box from using port 80 to communicate.
The Hosting Services page is a great reference for helping you to figure out the best way of hosting your WCF service. Windows Activation Service seems like the most comprehensive hosting solution, but obviously requires Vista as the platform.