Troubleshoot Common exceptions in WCF (updating constantly...), and update continuously in wcf

Source: Internet
Author: User

Troubleshoot Common exceptions in WCF (updating constantly...), and update continuously in wcf

System Win7 IIS7.5

Exception 1. The base address that matches the scheme net. tcp cannot be found with the endpoint bound to NetTcpBinding. The registered base address scheme is [http].

Cause: the net. tcp protocol is not configured for the website. By default, the website only has the http protocol solution: Open IIS and select edit the binding under the website. Configure the net. tcp protocol. You can search for specific operations. Q: Does the website still report this error when the net. tcp protocol is correctly configured? Possible cause: the port is incorrect, for example, the net. tcp port 1000 may be used to right-click the svc file in CMDL Studio and allocate another port, such as 2000. This may cause this problem. Solution: Open the svc file in IIS. Exception 2. http is displayed when the net. tcp protocol is used in the WCF configuration duplex.We use the net. tcp protocol, but the http protocol is displayed here. Solution:
<ServiceMetadata httpGetEnabled = "false" httpsGetEnabled = "false"/>

After solution:

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.