Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/11/2011, 13:00
jesuskaoz
 
Fecha de Ingreso: octubre-2009
Mensajes: 24
Antigüedad: 14 años, 7 meses
Puntos: 0
Exclamación An existing connection was forcibly closed by the remote host

como el mismo titulo lo dice tengo este error:

"An existing connection was forcibly closed by the remote host"
esta aplicacion me genera un pdf, y lo descarga por memory stream.
Esta aplicación lo tenia funcionando perfectamente en un servidor, cuando cambie de servidor, me ocasiono este problema.

Gracias por su atención y espero que me puedan guiar para dar solución a este problema.

el error completo es este:

Código:
Server Error in '/contextos' Application.

An existing connection was forcibly closed by the remote host

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

Source Error: 


Line 141:        HttpContext.Current.Response.BinaryWrite(MStream.GetBuffer());
Line 142:        HttpContext.Current.Response.End();
Line 143:    }
Line 144:    private string generarhmtl()
Line 145:    {
Código:
Stack Trace: 


[SocketException (0x2746): An existing connection was forcibly closed by the remote host]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +232

[IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +7115679
   System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) +20
   System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) +435

[WebException: The underlying connection was closed: An unexpected error occurred on a receive.]
   verdocumento.CreatePDFDocument(String titulod) in c:\Inetpub\wwwroot\contextos\verdocumento.aspx.cs:143
   verdocumento.ImageButton1_Click(Object sender, ImageClickEventArgs e) in c:\Inetpub\wwwroot\contextos\verdocumento.aspx.cs:428
   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +98
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +161
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3618