简体   繁体   English

ASP.NET SQL错误加载页面

[英]ASP.NET SQL Error Loading Page

We're getting the following error message when trying to login to our ASP.NET application: 尝试登录到我们的ASP.NET应用程序时,我们收到以下错误消息:

Server Error in '/' Application. “ /”应用程序中的服务器错误。

The wait operation timed out 等待操作超时

Description: An unhandled exception occurred during the execution of the current web request. 说明:执行当前Web请求期间发生未处理的异常。 Please review the stack trace for more information about the error and where it originated in the code. 请查看堆栈跟踪,以获取有关错误及其在代码中起源的更多信息。

Exception Details: System.ComponentModel.Win32Exception: The wait operation timed out 异常详细信息:System.ComponentModel.Win32Exception:等待操作超时

Source Error: 源错误:

An unhandled exception was generated during the execution of the current web request. 当前Web请求的执行期间生成了未处理的异常。 Information regarding the origin and location of the exception can be identified using the exception stack trace below. 可以使用下面的异常堆栈跟踪来标识有关异常的来源和位置的信息。

Stack Trace: 堆栈跟踪:

[Win32Exception (0x80004005): The wait operation timed out] [Win32Exception(0x80004005):等待操作超时]

[SqlException (0x80131904): Timeout expired. [SqlException(0x80131904):超时已过期。 The timeout period elapsed prior to completion of the operation or the server is not responding.] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action 1 wrapCloseInAction) +1753346 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action 1 wrapCloseInAction) +5295154 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +242 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1682 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +59 System.Data.SqlClient.SqlDataReader.get_MetaData() +90 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +365 System.Data.SqlClient.SqlCommand. 操作完成之前超时的时间,或者服务器没有响应。] System.Data.SqlClient.SqlConnection.OnError(SqlException异常,布尔型breakConnection,操作1 wrapCloseInAction) +1753346 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action 1 wrapCloseInAction)+5295154 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj,布尔调用程序HasConnectionLock,布尔asyncClose)+242 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavier,SqlCommand dataStream,BulkCopySimpleResultSet bulkCopyHandler,TdsParserStateObject stateObj,布尔值和dataReady)+1682 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()+59 System.Data.SqlClient.SqlDataReader.get_MetaData()+90 System.Data.SqlClient.SqlCommand.FinishExecuteReader(Sql ds,RunBehavior runBehavior,字符串resetOptionsString)+365 System.Data.SqlClient.SqlCommand。 RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite) +1325 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +175 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +53 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +134 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +41 System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior) +10 System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +437 RunExecuteReaderTds(CommandBehavior cmdBehavior,RunBehavior runBehavior,布尔returnStream,布尔异步,Int32超时,任务和任务,布尔asyncWrite)+1325完成,Int32超时,任务和任务,布尔asyncWrite)+175 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,RunBehavior runBehavior,布尔returnStream,String方法)+53 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior行为,字符串方法)+134 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior行为)+41 System.Data.Common.DbCommand.ExecuteReader(CommandBehavior行为)+10 System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand,CommandBehavior行为) )+437

[EntityCommandExecutionException: An error occurred while executing the command definition. [EntityCommandExecutionException:执行命令定义时发生错误。 See the inner exception for details.] System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +507 System.Data.Objects.Internal.ObjectQueryExecutionPlan.Execute(ObjectContext context, ObjectParameterCollection parameterValues) +675 System.Data.Objects.ObjectQuery 1.GetResults(Nullable 1 forMergeOption) +102 System.Data.Objects.ObjectQuery 1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +30 System.Linq.Enumerable.Single(IEnumerable 1 source) +100 System.Data.Objects.ELinq.ObjectQueryProvider.b__3(IEnumerable 1 sequence) +5 System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle(IEnumerable 1 query, Expression queryRoot) +25 System.Data.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) +70 System.Linq.Queryable.Count(IQueryable`1 source) +233 BioWaveWeb.Default.Page_Load(Object sender, EventArgs e) +790 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Obje 有关详细信息,请参见内部异常。] System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand实体命令,CommandBehavior行为)+507 System.Data.Objects.Internal.ObjectQueryExecutionPlan.Execute(ObjectContext上下文,ObjectParameterCollection参数值)+675 System.Data。 Objects.ObjectQuery 1.GetResults(Nullable 1)+102 System.Data.Objects.ObjectQuery 1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +30 System.Linq.Enumerable.Single(IEnumerable 1源) +100 System.Data.Objects.ELinq.ObjectQueryProvider.b__3(IEnumerable 1 sequence) +5 System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle(IEnumerable 1查询,表达式queryRoot)+25 System.Data.Objects.ELinq.ObjectQueryProvider .System.Linq.IQueryProvider.Execute(表达式)+70 System.Linq.Queryable.Count(IQueryable`1源)+233 BioWaveWeb.Default.Page_Load(Object sender,EventArgs e)+790 System.Web.Util.CalliEventHandlerDelegateProxy .Callback(Obje ct sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772 ct发件人,EventArgs e)+51 System.Web.UI.Control.OnLoad(EventArgs e)+92 System.Web.UI.Control.LoadRecursive()+54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+772

Version Information: Microsoft .NET Framework Version:4.0.30319; 版本信息:Microsoft .NET Framework版本:4.0.30319; ASP.NET Version:4.0.30319.17929 ASP.NET版本:4.0.30319.17929

Can someone assist or give any comments on how to resolve this? 有人可以协助或提出任何解决方案的意见吗?

It appears your ASP.NET application is making a call to a SQL Server database via a COM (Component Object Model) component, but something in or downstream of that component is failing and causing the request to the database to time out. 看来您的ASP.NET应用程序正在通过COM(组件对象模型)组件对SQL Server数据库进行调用,但是该组件内部或下游的某些组件出现故障,并导致对数据库的请求超时。 You're almost certainly going to have to get in touch with some development staff that can debug this issue in particular to determine what component(s) is/are involved, what servers are being contacted, and what intermediate error(s) may be occurring that are causing the failure/timeout. 几乎可以肯定,您将必须与一些开发人员联系,他们可以调试此问题,尤其是确定涉及哪些组件,正在联系的服务器以及可能出现的中间错误。导致失败/超时的事件。 Very difficult to provide much more detail than that at this point based on this stack trace. 在这一点上,基于此堆栈跟踪信息,要提供比现在更多的细节非常困难。

EDIT: A true "timeout" could be indicative of something inside a stored procedure that is becoming stuck in an infinite loop (as one possibility). 编辑:真正的“超时” 可能表示存储过程中的某些东西正陷入无限循环(一种可能性)。 There are myriad other possibilities, so take that as merely one possibility among many. 还有无数其他可能性,因此应将其作为众多可能性中的仅一种。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM