I am trying to add a new sql query to a document type in the CMS, but most of the time I get a timeout error:
Server Error in '/' Application.
The wait operation timed out
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.
Exception Details: System.ComponentModel.Win32Exception: The wait operation timed out
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
- Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[Win32Exception (0x80004005): The wait operation timed out]
[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, Action1 wrapCloseInAction) +388
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +810
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4403
System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +82
System.Data.SqlClient.SqlDataReader.get_MetaData() +135
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6664261
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite) +6666080
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource
1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +577
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +107
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +288
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +180
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +21
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +325
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +420
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +278
CMS.DataProviderSQL.DataConnection.ExecuteQuery(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean requiresTransaction) +228
[Exception: [DataConnection.HandleError]: Query: Proc_CMS_Class_Update: caused exception: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.]
CMS.DataEngine.AbstractDataConnection.HandleError(String queryText, SqlException ex) +116
CMS.DataProviderSQL.DataConnection.ExecuteQuery(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean requiresTransaction) +369
CMS.SettingsProvider.SqlHelperClass.ExecuteQuery(QueryParameters query) +198
CMS.SettingsProvider.DataClassInfoProvider.SetDataClass(DataClassInfo infoObj) +2556
CMS.SettingsProvider.BaseInfo.TouchParent() +347
CMS.Synchronization.SynchronizationHelper.TouchParent(BaseInfo infoObj, TaskTypeEnum taskType) +236
CMS.Synchronization.SynchronizationHelper.TouchParentUpdate(BaseInfo infoObj) +88
CMS.SettingsProvider.CMSHandler2.RaiseAfter(ArgsType e) +78
CMS.SettingsProvider.CMSHandler
2.RaiseAfter(ArgsType e) +48
CMS.SettingsProvider.CMSHandler2.FinishEvent() +20
CMS.SettingsProvider.QueryProvider.SetQuery(Query infoObj) +1700
CMSModules_AdminControls_Controls_Class_QueryEdit.SaveQuery() +660
CMSModules_AdminControls_Controls_Class_QueryEdit.Save(Boolean closeOnSave) +660
CMS.SettingsProvider.CMSSimpleHandler
2.RaiseExecute(ArgsType e) +42
CMS.SettingsProvider.CMSSimpleHandler2.RaiseExecute(ArgsType e) +82
CMS.SettingsProvider.CMSSimpleHandler
2.StartEvent(ArgsType e) +160
CMS.SettingsProvider.EventList.RaiseEvent(Object sender, EventArgs e, String eventName, String actionName) +221
CMS.SettingsProvider.EventList.RaiseComponentEvent(Object sender, EventArgs e, String componentName, String eventName) +28
CMS.ExtendedControls.HeaderActions.RaiseActionPerformed(Object sender, CommandEventArgs e) +353
CMSAdminControls_UI_PageElements_HeaderActions.RaisePostBackEvent(String eventArgument) +186
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804
Is there any way to resolve this apart from changing the timeout in the web config ?
Is this a known issue ?
Thanks
Phil