Errore server nell'applicazione '/'.

Connessione in corso interrotta forzatamente dall'host remoto

Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere la traccia dello stack.

Dettagli eccezione: System.Net.Sockets.SocketException: Connessione in corso interrotta forzatamente dall'host remoto

Errore nel codice sorgente:


Riga 40:         NpgsqlDataAdapter da = new NpgsqlDataAdapter(sql, conn);
Riga 41:         ds.Reset();
Riga 42:         da.Fill(ds);
Riga 43:         dt = ds.Tables[0];
Riga 44: 

File di origine: c:\inetpub\wwwroot\marciadalmondo.com\App_Code\Connessione.cs    Riga: 42

Traccia dello stack:


[SocketException (0x2746): Connessione in corso interrotta forzatamente dall'host remoto]
   System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) +220

[IOException: Impossibile scrivere dati sulla connessione di trasporto: Connessione in corso interrotta forzatamente dall'host remoto.]
   System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) +780
   System.IO.BufferedStream.WriteByte(Byte value) +128
   Npgsql.NpgsqlQuery.WriteToStream(Stream outputStream) +72
   Npgsql.NpgsqlReadyState.QueryEnum(NpgsqlConnector context, NpgsqlCommand command) +99
   Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb) +218

[NpgsqlException (0x80004005): The Connection is broken.]
   Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb) +643
   Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior cb) +268
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +201
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +178
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +122
   Connessione.EseguiQuery(String sql, NpgsqlConnection conn) in c:\inetpub\wwwroot\marciadalmondo.com\App_Code\Connessione.cs:42
   ita_album_fotografico.CaricaTabella() +173
   ita_album_fotografico.Page_Load(Object sender, EventArgs e) +132
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Informazioni di versione: Versione di Microsoft .NET Framework:4.0.30319; Versione di ASP.NET:4.7.3062.0