The remote client cannot parse the WCF Service metadata because the metadata address host name is the name of the server computer.

Source: Internet
Author: User

I deployed a WCF Service on the server and mapped it to the Internet. When an Internet client references the service, the metadata address host name is always the computer name of the server. Because the client is on the Internet of the server, therefore, the client cannot identify the computer name of the server.

For example, my published service address is http: // Internet address: Port Number/service name. SVC. The metadata address is automatically resolved to: http: // computer name: Port Number/service name. SVC? WSDL [the specific reason is unknown. If anyone knows this, please leave a message ].

I tried to modify the IIS settings, but it still does not work. If someone knows it is due to IIS configuration problems, please leave a message to teach me how to configure it ].

The solution is to add the server computer name ing on the client. The specific operations are as follows:

Find the c: \ windows \ system32 \ drivers \ etc \ hosts file, open the file in notepad, and add the ing, as shown in:

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.