Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 19461

How to resolve socket exception on Hyper-V machine?

$
0
0
Recently, our entire QA environment moved from VMWare to Hyper-V virtual machines.

One of our applications sends UDP packets to a multicast cloud by a rate of 20K packets per second.

While that worked perfectly on the VMWare environment, the Hyper-V makes the application to throw the following exception after a couple minutes of work:

    System.Net.Sockets.SocketException (0x80004005): An invalid argument was supplied
       at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

I've also managed to mimic this issue instantly when defining the socket's sending buffer size to 1,000,000 bytes.

How can I resolve this issue?

**UPDATE**: This is a log entry from the event viewer once the exception happens:

    Faulting application name: Agent.exe, version: 1.0.12.7366, time stamp: 0x51389f69
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.18015, time stamp: 0x50b83c8a
    Exception code: 0xe0434352
    Fault offset: 0x0000c41f
    Faulting process id: 0xaf0
    Faulting application start time: 0x01ce1b4ce509dc7a
    Faulting application path: C:\Users\DevUser\Desktop\QA\Agent.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    Report Id: d2b45dce-8740-11e2-86f9-00155d022804

Eran


Viewing all articles
Browse latest Browse all 19461

Trending Articles