I have a windows service that hosts two WCF services - one using HTTP on port 8731 and the other using HTTPS on port 8732.
When I start the service, it stops after about 30 seconds with the following error
Service cannot be started. System.ServiceModel.AddressAlreadyInUseException: HTTP could not register URL https://+:8732/Design_Time_Addresses/WcfServiceHost/Session/. Another application has already registered this URL with HTTP.SYS. ---> System.Net.HttpListenerException: Failed to listen on prefix 'https://+:8732/Design_Time_Addresses/WcfServiceHost/Session/' because it conflicts with an existing registration on the machine.
using "netstat -a" before and after trying to start the service indicates that there is nothing listening on port 8732.
If I change the port from 8732 to 8733 in app.config, the service starts successfully. Running netstat -a indicates that nothing is listening on port 8732.
If I change the port back to 8732, it stops working again. I would really like to understand why this happening, but am not sure where to go from here. Any help would be appreciated.
View Complete Post