+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

2 posts, 0 answered
  1. Peppi Alexandrova
    Peppi Alexandrova avatar
    14 posts
    Registered:
    22 Feb 2006
    11 Nov 2010
    Link to this post
    Here is the error we get from time to time in admin(sitefinity 3.7). Nothing is changed it gives the error at random admin pages. We resolve it by changing web.config (adding a space or similiar). After 5-7 days it happens again. Please help

    Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

    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.ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

    Source Error: 

    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.

    Stack Trace: 

    [ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.]
       System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) +0
       System.Collections.Generic.Queue`1.SetCapacity(Int32 capacity) +57
       System.Collections.Generic.Queue`1.Enqueue(T item) +63
       MySql.Data.MySqlClient.ProcedureCache.AddNew(MySqlConnection connection, String spName) +198
       MySql.Data.MySqlClient.ProcedureCache.GetProcedure(MySqlConnection conn, String spName) +96
       MySql.Data.MySqlClient.StoredProcedure.GetParameters(String procName) +102
       MySql.Data.MySqlClient.StoredProcedure.Resolve() +105
       MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +458
       MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +4
       System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() +12
       Nolics.ORMapper.DataProviders.SQLBlockBuilder.EndStatement(SQLCommandEventArgs args, DataRow row) +413
       Nolics.ORMapper.DataProviders.SQLBlockBuilder.ExecQueryProcedure(StmtContext context, DataRow queryData) +477
       Nolics.ORMapper.DataProviders.SQLBlockBuilder.ExecuteQuery(StmtContext context, DataRow queryData, Int32 maxRows, String group) +63
       Nolics.ORMapper.DataProviders.SQLDataProvider.ExecQuery(DataSet queries) +451
       Nolics.ORMapper.Base.QueryBase`1.LoadQuery(Int32 maxElements, Int32 fromElement) +286
       Nolics.ORMapper.Base.QueryBase`1.LoadAll() +23
       Telerik.Cms.Data.DefaultProvider.GetPages() +104
       Telerik.Cms.CmsManager.GetPages(Int32 from, Int32 maxRows, String sortExpr, ListSortDirection sortDirection, Int32& totalRows) +68
       Telerik.Cms.Web.UI.PagesDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +348
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
       System.Web.UI.WebControls.GridView.DataBind() +4
       Telerik.Cms.Web.UI.ManagePagesGrid.OnPreRender(EventArgs e) +193
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Nov 2010
    Link to this post
    Hi Peppi,

    This looks like an issue that comes from MySQL - Bug #35179 The incorrect usage of Queue is reason of volatile mistake or you have some sync tool that monitors the database and breaks the stored procedures.

    The error is thrown when you use GetPages method of the CmsManager is a custom control or you go to pages section.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered