Jim
Jim

Reputation: 1735

WCF Timeout (HTTP Request was aborted/No endpoint listening)

I was modifying a WCF service to increase the timeout for a Silverlight client. Before modifying the timeouts I'm seeing CommunicationObjectAborted exception (The HTTP request to [URL] was aborted). At first I only modified the web.coffig of the WCF and it had no effect. I then followed this post (http://blog.ecofic.com/?p=379) and edited ServiceReferences.ClientConfig as well. Now I'm seeing a No endpoint exception. The exception was not thrown immediately after the client connects to WCF, but after about 1 minute after it connected to WCF. I suspect it has something to do with the timeouts?

I set open, close, send and receive timeouts to 5 minutes in both config files.

Any idea? Thanks!

Upvotes: 0

Views: 1103

Answers (2)

Lindsay
Lindsay

Reputation: 161

As Richard pointed out, sendTimeout only be needed to set on the client (your Windows Phone app in this case). Double check the ServiceReferences.clientConfig as manually added value might get overwritten by Visual Studio.

Also you can check this post for using Fiddler on Windows Phone (emulator).

Upvotes: 1

Eilistraee
Eilistraee

Reputation: 8290

You should use Fiddler to analyse the requests performed by your application. This way, you will be able to know what happen when the request is sent, where exactly it is sent (if it is sent), and the response code from the server.

Obtaining these informations is the first step on the way to troubleshoot your issue.

Upvotes: 0

Related Questions