Fatal error in Paging - InsertGallery

  •  08-30-2006, 3:33 AM

    Fatal error in Paging - InsertGallery

    Hi
     
    I get an error when I press the paging links in the InsertGallery dialog. I store pictures in a database, and everything except paging works fine, and I have to say, that paging worked fine before version 5.3.
     
    I have tried to debug the code (SqlFileStorage.cs) and have found out, that the error occurs after the return value of "return (CuteEditor.Impl.FileItem[])arr.ToArray(typeof(CuteEditor.Impl.FileItem)) in the method GetFileItems.
    The error message says:
     
    UserHostAddress: 172.31.48.253
    UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    AcceptTypes: */*
    UserLanguages: da
    ---> System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.FormatException: Input string was not in a correct format.
       at System.Text.StringBuilder.FormatError()
       at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
       at System.String.Format(IFormatProvider provider, String format, Object[] args)
       at System.String.Format(String format, Object arg0, Object arg1)
       at CuteEditor.Dialogs.ThumbList.CreateNavBar(PlaceHolder plLinks)
       at CuteEditor.Dialogs.ThumbList.Item_DataBound(Object sender, DataListItemEventArgs e)
       at System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e)
       at System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
       at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource)
       at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
       at System.Web.UI.WebControls.BaseDataList.DataBind()
       at CuteEditor.Dialogs.ThumbList.BindThumbList()
       at CuteEditor.Dialogs.ThumbList.Page_Load(Object Src, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain()
       --- End of inner exception stack trace ---
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain()
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       --- End of inner exception stack trace ---
     
    As mentioned in the text, the errors occurs because of:
    System.FormatException: Input string was not in a correct format.
     
    I have checked every elements in the array and everything seems to be OK.
     
    It is an critical error, because the error shows up in the error log many times.
     
    Do you have a soluton?
     
    /Torben
     
     
     
     
View Complete Thread