请求超时服务器未响应

时间:2018-02-02 07:38:06

标签: c# asp.net sql-server timeout

我有一个项目,我正在调用一个存储过程来从数据库中检索数据,但是当我通过UI运行该存储过程时,它会给出上述错误。

异常详细信息:System.ComponentModel.Win32Exception:等待操作超时

我的堆栈跟踪是:

  

System.Data.SqlClient.SqlConnection.OnError(SqlException异常,   Boolean breakConnection,Action 1 wrapCloseInAction) +2444082 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action 1 wrapCloseInAction)   5775560          System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject   stateObj,Boolean callerHasConnectionLock,Boolean asyncClose)+285          System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior,SqlCommand cmdHandler,SqlDataReader dataStream,   BulkCopySimpleResultSet bulkCopyHandler,TdsParserStateObject   stateObj,布尔& dataReady)+4169          System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()+58          System.Data.SqlClient.SqlDataReader.get_MetaData()+ 89          System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds,   RunBehavior runBehavior,String resetOptionsString,Boolean   isInternal,Boolean forDescribeParameterEncryption)+409          System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(的CommandBehavior   cmdBehavior,RunBehavior runBehavior,Boolean returnStream,Boolean   async,Int32超时,任务& task,Boolean asyncWrite,Boolean inRetry,   SqlDataReader ds,Boolean describeParameterEncryptionRequest)+2127          System.Data.SqlClient.SqlCommand.RunExecuteReader(的CommandBehavior   cmdBehavior,RunBehavior runBehavior,Boolean returnStream,String   方法,TaskCompletionSource`1完成,Int32超时,任务&任务,   布尔和放大器; usedCache,Boolean asyncWrite,Boolean inRetry)+911          System.Data.SqlClient.SqlCommand.RunExecuteReader(的CommandBehavior   cmdBehavior,RunBehavior runBehavior,Boolean returnStream,String   方法)+64          System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior,String method)+240          System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(的CommandBehavior   行为)+41          System.Data.Common.DbCommand.ExecuteReader()+ 14          System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query,QueryInfo queryInfo,IObjectReaderFactory factory,Object []   parentArgs,Object [] userArgs,ICompiledSubQuery [] subQueries,Object   lastResult)+1290          System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query,QueryInfo [] queryInfos,IObjectReaderFactory factory,Object []   userArguments,ICompiledSubQuery [] subQueries)+118          System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(表达式   查询)+342          System.Data.Linq.DataContext.ExecuteMethodCall(Object instance,MethodInfo methodInfo,Object [] parameters)+83

   myclass file(Boolean IsActive, String role, Int64 userID, Int64 InstID, String deptID) in 
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     

678

当我在我的数据库中执行相同的存储过程时,它会给我数据作为结果但是通过UI它不会进入下一页并加载结果。

0 个答案:

没有答案