[Mono-dev] WCF Fail with System.Net.Sockets.SocketException: Connection reset by peer

Rob Wilkens robwilkens at gmail.com
Thu Jun 28 00:47:05 UTC 2012


On 06/27/2012 01:02 PM, shahbour wrote:
> Reproducing the error is very simple, just host any application under
> console app and in any service function put Thread.Sleep(..) to give
> you time to close the browser before it reply. Then call this function
> from any client and close it before getting the response. In my live
> program i don't put Thread.sleep it is only to give us time between
> calling the function and closing the browser. Under windows we got the
> bellow that don't crash the application error.Message "An operation
> was attempted on a nonexistent network connection"
> error.InnerException {"An operation was attempted on a nonexistent
> network connection"} System.Exception
> {System.Net.HttpListenerException} error.ErrorCode 1229 BR Shahbour
> ------------------------------------------------------------------------
>
First, I'm glad you managed to get the error handler to prevent the
application from crashing altogether by changing the return value.  I
think i suggested that the other day or was that this morning, i don't
remember now.

Next, I personally don't know what it means (above) when you say "just
host any application under console app," or how to build a "service
function", but that's my fault for never having used WCF.  Please
understand, for example, just because someone knows how to code -- take
for example -- an operating system, doesn't mean they know how to use
every possible application that can run on the operating system (take,
for example, some advanced math, science, or engineering program --
knowledge of low level C doesn't imply knowledge of advanced chemistry
or physics for example).

-Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120627/902ae4d7/attachment-0001.html>


More information about the Mono-devel-list mailing list