When Calling Web Service, returns Unexpected Error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection
We have a web service hosted on Windows2003 32bit. Now that we have moved to a Windows 2008 64bit server, calls to the web service return the following error (from client machines as well as from a 'client' exe running on the server (so it can't
have anything to do with networking)):
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote
host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) --- End of inner exception stack trace --- at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at WindowsFormsApplication1.hytapps.utilitiesclass.Logon(String Operator, String OperatorPassword, String CompanyId, String CompanyPassword, Language
LanguageCode, LogDetail LogLevel, Instance EncoreInstance, String XmlIn) in C:\Users\shawnd\AppData\Local\Temporary Projects\WindowsFormsApplication1\Web References\hytapps\Reference.cs:line 93 at WindowsFormsApplication1.Form1.button1_Click(Object sender,
EventArgs e) in C:\Users\shawnd\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs:line 25
Any ideas please?
Shawn de Wet
May 28th, 2011 1:18am
Hello,
what web service is that, self written one, then please use the MSDN forum:
http://social.msdn.microsoft.com/Forums/en/categories/
If IIS is used please ask in: http://forums.iis.net/Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
May 28th, 2011 5:43am