Foros del Web » Programando para Internet » ASPX (.net) »

An existing connection was forcibly closed by the remote host

Estas en el tema de An existing connection was forcibly closed by the remote host en el foro de ASPX (.net) en Foros del Web. 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, ...
  #1 (permalink)  
Antiguo 23/11/2011, 13:00
 
Fecha de Ingreso: octubre-2009
Mensajes: 24
Antigüedad: 15 años, 1 mes
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

Etiquetas: .net, c#.net, connection, existing, iis6, socket
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 04:22.