WCF in VS, add service reference, address input http://ip/Service.svc, click Go, hint Error

Source: Internet
Author: User

Http://www.cnblogs.com/easy5weikai/p/3340960.html


WCF in VS, add service reference, address input http://ip/Service.svc, click to go, hint error, the contents are as follows:

An error occurred while downloading ' http://127.0.0.1:7293/wcfserverrefwcflib.svc '. Request failed for HTTP status 404: Not Found. Metadata contains unresolved references: "http://127.0.0.1:7293/wcfserverrefwcflib.svc". There is no endpoint listening on http://127.0.0.1:7293/wcfserverrefwcflib.svc that can accept messages. This is usually caused by an incorrect address or SOAP operation. If this is the case, see innerexception for more information. The remote server returned an error: (404) was not found. If the service is already defined in the current solution, try to build the solution, and then add the service reference again.

  

The solution is:

Add in WCF Server <system.serviceModel> node:

<servicehostingenvironment multiplesitebindingsenabled= "true"/>

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.