Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > The underlying connection was closed: An unexpected error occurred ona receive. net 3.5

Reply
Thread Tools

The underlying connection was closed: An unexpected error occurred ona receive. net 3.5

 
 
imonline
Guest
Posts: n/a
 
      01-22-2008
Hi,

I have created a asp.net page which posts XML on the web service
using .net 2.0. The page and the webservice was working fine but once
I converted them to .net 3.5 I have been getting following exception.
And I am having this problem on the local machine that is both of them
on same machine.

Exception:
System.Net.WebException was caught
Message="The underlying connection was closed: An unexpected error
occurred on a receive."
Source="System"
StackTrace:
at System.Net.HttpWebRequest.GetResponse() at
PROXY.Receive_Msg.ReceiveRequest() in C:\Workfolde2008\ws.evosuite.
2008.root\ws.evosuite.2005\PROXY\Receive_Msg.aspx. vb:line 77
InnerException: System.IO.IOException
Message="Unable to read data from the transport connection: An
existing connection was forcibly closed by the remote host."
Source="System"
StackTrace:
at System.Net.ConnectStream.Read(Byte[] buffer, Int32
offset, Int32 size) at
System.Net.HttpWebRequest.MakeMemoryStream(Stream stream)
InnerException: System.Net.Sockets.SocketException
ErrorCode=10054
Message="An existing connection was forcibly closed by the
remote host"
NativeErrorCode=10054
Source="System"
StackTrace:
at System.Net.Sockets.Socket.Receive(Byte[] buffer,
Int32 offset, Int32 size, SocketFlags socketFlags) at
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset,
Int32 size)
InnerException:



Please help resolving the issue.

Regards,
Nis
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Long call to webservice generates "underlying connection was closed: An unexpected error occurred on a receive."Error Techsatish ASP .Net Web Services 1 09-22-2006 03:18 AM
The underlying connection was closed: An unexpected error occurred on a receive. TCook ASP .Net 0 03-04-2006 08:17 PM
system.net.webexception The underlying connection was closed: An unexpected error occurred on a send. Rob Snell ASP .Net Web Services 5 09-28-2004 01:16 PM
Error when calling a web service (The underlying connection was closed: An unexpected error occurred on a receive.) Franck ASP .Net Web Services 0 11-12-2003 03:43 PM
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. Steven Harris ASP .Net Web Services 0 08-14-2003 10:23 AM



Advertisments