M
Massimo
This is why I suspect the problem is with mixing the asynchronous and
synchronous models for this class. The documentation is not entirely clear
about what goes on underneath, and one would need a network protocol
analyzer to be entirely sure, but knowing Microsoft, the 2 models
(synchronous and asynchronous) were designed as the documentation
suggests, each to work within the parameters of that model. So, before I
tried to do all of that packet analysis, I would simply try the easiest
method and switch to a consistent usage of the object model, which
Microsoft probably tested fairly well, just to potentially save time.
To be absolutely sure this wasn't the reason for the error, I replaced the
Receive() call with a BeginReceive() one.
As expected, nothing changed: the same exception is thrown.
Massimo