An unhandled exception of type 'System.NullReferenceException' occurred in system.dll

Additional information: Object reference not set to an instance of an object.


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Net.OSSOCK.WSAGetOverlappedResult(IntPtr socketHandle, IntPtr overlapped, UInt32& bytesTransferred, Boolean wait, IntPtr ignored)
at System.Net.Sockets.OverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)

I get this error whenever I run the debugger and my application just sits there. After about 2, maybe 3 minutes it gives me this exception. Why?