I have been attempting to create a nettcp port binding on the IIS default website for the port 9999; however always get the following error from the net.tcp listener;
An error occurred while parsing the net.tcp binding '9999:' of the site '1', thus the protocol is disabled for the site temporarily. See the exception message for more details. Binding: net.tcp:9999: Source: System.ServiceModel.Activation.ListenerAdapter/12547953 Exception: System.UriFormatException: The protocol binding '9999:*' is not valid for 'net.tcp'. This might be because the port number is out of range. at System.ServiceModel.Channels.BaseUriWithWildcard..ctor(String protocol, Int32 defaultPort, String binding, Int32 segmentCount, String path, String sampleBinding) at System.ServiceModel.Channels.BaseUriWithWildcard.CreateHostedUri(String protocol, String binding, String path) at System.ServiceModel.Activation.ListenerAdapter.RegisterBindings(IActivatedMessageQueue queue, Int32 siteId, String[] bindings, String path) Process Name: SMSvcHost Process ID: 1120
Anyone have any ideas on what could be the problem? Or an approach on how we might be able to investigate the issue further? I have checked the firewall settings and it seems the port is not specifically blocked.
Turns out that my Net.TCP listener adapter service had stopped running for some reason; turning this on resolved the issue. Steps given below;
Saurabh Chowdhury's answer above is also a common troubleshooting step; however this was not the issue in my case.
This link also gives a good overview of some of the other points to look out for.