2013-04-14 48 views
1

随着SqlConnection.ConnectionTimeoutSqlCommand.CommandTimeout设置为无限(0),我的桌面应用程序将等待无限期。但是,我的ASP.NET应用程序不会。没有连接被泄漏,并且有大量的系统内存。超时已过期。只有在ASP.NET

我怀疑ASP.NET是秘密设置超时,但即使HttpRuntimeSection.ExecutionTimeout设置为30分钟。我仍然遇到超时异常。

ASP.NET中有没有其他超时变量,我不知道?或者有人知道可能会造成这种情况吗?

更新:堆栈跟踪

at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) 
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) 
at System.Data.SqlClient.SqlConnection.Open() 
at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) 
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) 
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) 
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) 
at FrostWebsite._default.GetQuickStats() 
at FrostWebsite._default.Page_Load(Object sender, EventArgs e) 
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) 
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) 
at System.Web.UI.Control.OnLoad(EventArgs e) 
at System.Web.UI.Control.LoadRecursive() 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

回答

相关问题