Server Error in '/' Application.

无法继续执行,因为会话处于终止状态。

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.Data.SqlClient.SqlException: 无法继续执行,因为会话处于终止状态。

Source Error:


Line 55:             using (SqlDataAdapter da = new SqlDataAdapter(sql, conn))
Line 56:             {
Line 57:                 da.Fill(dt);
Line 58:             }
Line 59:         }

Source File: d:\web\HJH\hk2s.hjhdy.com\s1214.aspx.cs    Line: 57

Stack Trace:


[SqlException (0x80131904): 无法继续执行,因为会话处于终止状态。]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +2586158
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +6039990
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +297
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4477
   System.Data.SqlClient.SqlDataReader.TryCloseInternal(Boolean closeReader) +375
   System.Data.SqlClient.SqlDataReader.Close() +433
   System.Data.Common.DbDataReader.Dispose(Boolean disposing) +20
   System.Data.Common.DbDataReader.Dispose() +17
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +258
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +111
   s1214.GreatDs(String sql) in d:\web\HJH\hk2s.hjhdy.com\s1214.aspx.cs:57
   s1214.Page_Load(Object sender, EventArgs e) in d:\web\HJH\hk2s.hjhdy.com\s1214.aspx.cs:25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4797.0