Abnormal capture WP7 in EndpointNotFoundException

WP7 calls WebService server is not started wrong.
"System.ServiceModel.EndpointNotFoundException"The type of an unhandled exception occurred in System.ServiceModel.dll .
Exception caught so want to add EndpointNotFoundException, but do not know how to capture abnormal seeking advice here.

servicePortTypeClient client=new servicePortTypeClient();

Started by Cary at February 02, 2016 - 6:40 PM


Could not find the server...

Posted by Caesar at February 17, 2016 - 7:39 PM

I didn't open on the server end ah ah

Because the remote end point is closed, a remote endpoint cannot access, or unable to access the network, and may therefore cannot find or access endpoint.

The actual operation will also have the server closed the case. I'm not sure I can make the program be rather baffling exit.

Help how to try catch. .

Posted by Cary at February 26, 2016 - 8:03 PM

Seek help

Posted by Cary at March 08, 2016 - 8:07 PM

You put the try catch live.


Posted by Caesar at December 02, 2016 - 3:10 PM

Tried · useless... Still error

Posted by Cary at December 11, 2016 - 3:19 PM

When you open the server is what circumstance?

Posted by Caesar at December 23, 2016 - 4:18 PM

The normal operation of the= =
Pop MessageBox displays the message···

Posted by Cary at December 27, 2016 - 5:14 PM

You this is to test the abnormal case?

Posted by Caesar at January 03, 2017 - 5:42 PM

Also not

Because when I initialization programs need to connect to WebService data acquisition

If the connection fails I want connection failure message

The thought of catching an exception to get connection failure message

Results the also can not capture the abnormal.. Tangled

Posted by Cary at January 08, 2017 - 5:36 PM