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: