超时时间已到。在操作完成之前超时时间已过或服务器未响应。
语句已终止。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.SqlClient.SqlException: 超时时间已到。在操作完成之前超时时间已过或服务器未响应。
语句已终止。源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪: [SqlException (0x80131904): 超时时间已到。在操作完成之前超时时间已过或服务器未响应。
语句已终止。]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857450
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735062
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +86
Microsoft.Practices.EnterpriseLibrary.Data.Database.DoLoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames) +315
Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames, DbTransaction transaction) +35
Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String tableName, DbTransaction transaction) +54
Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(DbCommand command, DbTransaction transaction) +75
OT.HCS.DataAccess.HCS.Plan.JHJD_SGJH_List_DAL.GetBDFXListDetailByMainDocID(String JH_Main_DocID) in D:\OT.HCS\OT.HCS.DataAccess\HCS\Plan\JHJD_SGJH_List_DAL.cs:384[BaseException: 超时时间已到。在操作完成之前超时时间已过或服务器未响应。
语句已终止。]
OT.BaseLibrary.ExceptionServer.ExceptionDistribute(Exception pException, String pMessage, String pLayer, Boolean pIsThrow) +132
OT.BaseLibrary.ExceptionServer.ExceptionDistribute(Exception pException) +27
OT.HCS.DataAccess.HCS.Plan.JHJD_SGJH_List_DAL.GetBDFXListDetailByMainDocID(String JH_Main_DocID) in D:\OT.HCS\OT.HCS.DataAccess\HCS\Plan\JHJD_SGJH_List_DAL.cs:434
OT.HCS.BusinessFacade.HCS.Plan.JHJD_SGJH_List_BLF.GetBDFXListDetailByMainDocID(String JH_Main_DocID) in D:\OT.HCS\OT.HCS.BusinessFacade\HCS\Plan\JHJD_SGJH_List_BLF.cs:61
OT.HCS.WebUI.HCS.Plan.JHJD_SGJH_Span_ListDetail.BindGrid(String pJH_Main_DocID) in D:\OT.HCS\OT.HCS.WebUI\HCS\Plan\JHJD_SGJH_Span_ListDetail.aspx.cs:267
OT.HCS.WebUI.HCS.Plan.JHJD_SGJH_Span_ListDetail.Page_Load(Object sender, EventArgs e) in D:\OT.HCS\OT.HCS.WebUI\HCS\Plan\JHJD_SGJH_Span_ListDetail.aspx.cs:219
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
语句已终止。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.SqlClient.SqlException: 超时时间已到。在操作完成之前超时时间已过或服务器未响应。
语句已终止。源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪: [SqlException (0x80131904): 超时时间已到。在操作完成之前超时时间已过或服务器未响应。
语句已终止。]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857450
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735062
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +86
Microsoft.Practices.EnterpriseLibrary.Data.Database.DoLoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames) +315
Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames, DbTransaction transaction) +35
Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String tableName, DbTransaction transaction) +54
Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(DbCommand command, DbTransaction transaction) +75
OT.HCS.DataAccess.HCS.Plan.JHJD_SGJH_List_DAL.GetBDFXListDetailByMainDocID(String JH_Main_DocID) in D:\OT.HCS\OT.HCS.DataAccess\HCS\Plan\JHJD_SGJH_List_DAL.cs:384[BaseException: 超时时间已到。在操作完成之前超时时间已过或服务器未响应。
语句已终止。]
OT.BaseLibrary.ExceptionServer.ExceptionDistribute(Exception pException, String pMessage, String pLayer, Boolean pIsThrow) +132
OT.BaseLibrary.ExceptionServer.ExceptionDistribute(Exception pException) +27
OT.HCS.DataAccess.HCS.Plan.JHJD_SGJH_List_DAL.GetBDFXListDetailByMainDocID(String JH_Main_DocID) in D:\OT.HCS\OT.HCS.DataAccess\HCS\Plan\JHJD_SGJH_List_DAL.cs:434
OT.HCS.BusinessFacade.HCS.Plan.JHJD_SGJH_List_BLF.GetBDFXListDetailByMainDocID(String JH_Main_DocID) in D:\OT.HCS\OT.HCS.BusinessFacade\HCS\Plan\JHJD_SGJH_List_BLF.cs:61
OT.HCS.WebUI.HCS.Plan.JHJD_SGJH_Span_ListDetail.BindGrid(String pJH_Main_DocID) in D:\OT.HCS\OT.HCS.WebUI\HCS\Plan\JHJD_SGJH_Span_ListDetail.aspx.cs:267
OT.HCS.WebUI.HCS.Plan.JHJD_SGJH_Span_ListDetail.Page_Load(Object sender, EventArgs e) in D:\OT.HCS\OT.HCS.WebUI\HCS\Plan\JHJD_SGJH_Span_ListDetail.aspx.cs:219
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
cmd1.commandtimeout=0
cmd1.commandtimeout=0
如果在web.config里面配置该怎么写
而不是去怎么样考虑让 时间上限再长一点.看看你的SQL语句或存储有什么不够优化的,
看看表结构是否合理,索引有没有建立或被利用上.
cmd1.commandtimeout=0
你是不想这样设 还是设了不起作用啊??
运算复杂
未及时关闭sqldr,sqlconn等