China Naming Network - Eight-character fortune telling - Using C# winform webservice to obtain weather forecast data, the program cannot run normally on the server.

Using C# winform webservice to obtain weather forecast data, the program cannot run normally on the server.

1. First check if it is caused by anti-virus software or firewall.

If you want LAN access, make sure apache is configured correctly, check C:\WINDOWS\system32\drivers\ Remove the # number before 127.0.0.1 and localhost in etc\hosts. Then you can turn off the firewall or open port 80 of the firewall. Finally, just enter your computer IP address on another machine.

2. If it is WAN access, you have to apply for domain name space. More troublesome.

3. WCF has a designated connection, such as localhost, and the security configuration must be modified