In WCF Service programming, the following error occurs when the client adds a reference service: Metadata contains reference that cannot be parsed: "net. TCP: // 192.168.1.105: 1314/loginservice ". The socket connection has been suspended. This may be caused by an error in message processing, remote host receiving timeout, or potential network resource problems. The local socket timeout value is "00:04:59. 8281250 ". The remote host forces an existing connection to be closed. If the service has been defined in the current solution, try to generate the solution and add the service reference again. The main reason is that the red font in the app. config configuration file of the following server is not added <? XML version = "1.0" encoding = "UTF-8"?> <Configuration> <system. servicemodel> <bindings> <nettcpbinding> <binding name = "loginservicebinding" transactionflow = "true"/> </nettcpbinding> </bindings> <services> <service name = "services. cloginservice "behaviorconfiguration =" loginbehavior "> <Endpoint address = "mex" binding = "mextcpbinding" Contract = "imetadataexchange"/> </Service> </services> <Behaviors> <Servicebehaviors> <Behavior name = "loginbehavior"> <Servicemetadata httpgetenabled = "false"/> </Behavior> </Servicebehaviors> </Behaviors> </System. servicemodel> </configuration>