views:

457

answers:

1

Hello!

I have a WCF consumed by a Windows Mobile 5.0 or above application with .NET Compact Framework 2.0 SP2 and C#.

When the application consume a asynchronous "method" it throws that message. This is also the stackTrace of inner exception:

at System.Net.Sockets.Socket.ReceiveNoCheck()
at System.Net.Sockets.Socket.Receive()
at System.Net.Connection.Read()
at System.Net.HttpWebRequest.fillBuffer()
at System.Net.HttpWebRequest.getLine()
at System.Net.HttpWebRequest.parseResponse()
at System.Net.HttpWebRequest.startReceiving()
at System.Net.Connection.startReceiving()
at WorkItem.doWork()
at System.Threading.Timer.ring()

The message from the exception is:

"Unable to read data from the transport connection."

And its stackTrace is:

at System.Net.HttpWebRequest.finishGetResponse()
at System.Net.HttpWebRequest.GetResponse()
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse()
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse()
at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke()
at System.Web.Services.Protocols.SoapHttpClientProtocol.doAsyncInvoke()
at WorkItem.doWork()
at System.Threading.Timer.ring()

What's happening?

If you need more details tell me!

Update:

I have two computers and on both the same error happens. One of then is a Windows 7 Ultimate 64bit, and the other is a Windows Vista Home Premium 32 bit. Maybe it is something releated to code...

Thank you.

A: 

For socket exceptions like this, we usually need to capture network traffic using Wireshark or Microsoft Network Monitor to troubleshoot. Only when such information is available we can say what happens on the wire (or wireless).

Lex Li
Do you need that information? Would you like to show you that information?
VansFannel
Sorry, no. Analyzing such data takes time :) If you are not familiar with such analysis, you may contact Microsoft support team via http://support.microsoft.com
Lex Li
I don't think is a network problem because I have two computers and on both happens the same error.
VansFannel
Ok, I added this key to registry: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ DWORD SynAttackProtect 00000000" and it works! But I'm going to delete it because it's not safe. I've found it here http://msdn.microsoft.com/en-us/library/ms189083%28SQL.90%29.aspx
VansFannel