-1

I have created WCF test client, and it's working on my IP. however, when I tried to test it on the guest's IP it was not working. See an error message below:

Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service.

exception screenshot

Any ideas why I'm getting this error?

stop-cran
  • 4,229
  • 2
  • 30
  • 47
  • which .NET framework you are using? Also, try enabling TLS1.2 for services call. You may need to write System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; before the service call. – Nirman Mar 29 '18 at 05:31
  • Could you speak more specific ? @Nirman! thanks – Huỳnh Đỗ Minh Trí Mar 29 '18 at 05:38

1 Answers1

0

While using WCF service you have to host it on the server then you can access it to another system or computer please check hosting steps for WCF in order to complete your process.

Check this links : WCF Hosting Steps

Here we have the same question discussion : Failed to invoke the service

Laxman Gite
  • 2,248
  • 2
  • 15
  • 23