title: ASP.NET SQL Error Loading Page
body: <p>We're getting the following error message when trying to login to our ASP.NET application:</p>
  
  <p>Server Error in '/' Application.</p>
  
  <p>The wait operation timed out</p>
  
  <p>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. </p>
  
  <p>Exception Details: System.ComponentModel.Win32Exception: The wait operation timed out</p>
  
  <p>Source Error: </p>
  
  <p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</p>
  
  <p>Stack Trace: </p>
  
  <p>[Win32Exception (0x80004005): The wait operation timed out]</p>
  
  <p>[SqlException (0x80131904): Timeout expired.  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<code>1 wrapCloseInAction) +1753346
     System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action</code>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&amp; 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.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task&amp; task, Boolean asyncWrite) +1325
     System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task&amp; 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</p>
  
  <p>[EntityCommandExecutionException: An error occurred while executing the command definition. 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<code>1.GetResults(Nullable</code>1 forMergeOption) +102
     System.Data.Objects.ObjectQuery<code>1.System.Collections.Generic.IEnumerable&lt;T&gt;.GetEnumerator() +30
     System.Linq.Enumerable.Single(IEnumerable</code>1 source) +100
     System.Data.Objects.ELinq.ObjectQueryProvider.b__3(IEnumerable<code>1 sequence) +5
     System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle(IEnumerable</code>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(Object 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</p>
  
  <p>Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929</p>
  
  <p>Can someone assist or give any comments on how to resolve this?</p>