Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recover from
Message
From
09/09/2011 11:17:58
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Windows Communication Foundation (WCF)
Title:
Miscellaneous
Thread ID:
01523035
Message ID:
01523091
Views:
38
>>Hi all,
>>
>>If a Service call results in an exception because the connection is closed, (see below) does the binding and endpoint all need to be build again before a retry can be made? I could probably test this, but would have to write a bunch of code to find out and cause the failure. I was hoping someone knew the answer. Just wondering if the proxy is toast after this failure.
>>
>>
>>09/07/11 10:48:46|dlewis5|342560768|An existing connection was forcibly closed by the remote host in System
>>Stack trace:
>>   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
>>   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
>>Call stack:
>>   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
>>   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
>>
>>
>
>I'm pretty sure that's what I've always assumed in my code - once it has faulted I clear any references I'm holding to the proxy and instanciate a new one.

Thanks Paul,

I suspect, it would be wise to do this also. The code to recreate the proxy is already in place, I just have to capture that specific event and take care of it.
Thanks
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform