WCF programming] an error occurs during the use of net. TCP binding in WCF: Metadata contains references that cannot be parsed.

Source: Internet
Author: User

 

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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.