Arg_InvalidCastException

4 posts, 0 answers
  1. Vic
    Vic avatar
    40 posts
    Member since:
    Mar 2009

    Posted 13 Mar 2011 Link to this post


    Hi,

    I cannot reproduce this exception though a few of our users had came across this error, could someone please shed some light on this.

    We are using Q3 2010 - v2010.3.1110.1040 and if it helps we are using the HTML format provider.

    Thanks,
    Vic

    [Arg_InvalidCastException]

    Arguments:

    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60129.0&File=mscorlib.dll&Key=Arg_InvalidCastException


    StackTrace:

       at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)

       at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)

       at MS.Internal.XcpImports.UIElement_UpdateLayout(UIElement element)

       at Telerik.Windows.Documents.UI.DocumentPresenterBase.Telerik.Windows.Controls.IDocumentEditorPresenter.UpdateLayout()

       at Telerik.Windows.Controls.RadRichTextBox.UpdateEditorLayout(Boolean focusCarret, Boolean updateCaretSize)

       at Telerik.Windows.Controls.RadRichTextBox.document_PresentationChanged(Object sender, EventArgs e)

       at System.EventHandler.Invoke(Object sender, EventArgs e)

       at Telerik.Windows.Documents.Model.RadDocument.OnPresentationChanged()

       at Telerik.Windows.Documents.Model.RadDocument.DeleteRange(DocumentPosition fromPosition, DocumentPosition toPosition)

       at Telerik.Windows.Documents.Commands.DeleteRangeCommand.ExecuteCore(Object context)

       at Telerik.Windows.Documents.Commands.CommandBase.Execute(Object context)

       at Telerik.Windows.Documents.Commands.CompositeCommand.ExecuteCore(Object context)

       at Telerik.Windows.Documents.Commands.CommandBase.Execute(Object context)

       at Telerik.Windows.Documents.Commands.DeleteCommand.ExecuteCore(SelectionBasedCommandContext context)

       at Telerik.Windows.Documents.Commands.SelectionBasedCommand.ExecuteCore(Object context)

       at Telerik.Windows.Documents.Commands.CommandBase.Execute(Object context)

       at Telerik.Windows.Documents.Commands.InsertCommandBase.ExecuteCore(Object context)

       at Telerik.Windows.Documents.Commands.CommandBase.Execute(Object context)

       at Telerik.Windows.Documents.Model.RadDocument.ExecuteCommand(CommandBase command, DocumentCommandContext context)

       at Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.<>c__DisplayClass1.<caretUI_TextInserted>b__0()

  2. Mike
    Admin
    Mike avatar
    640 posts

    Posted 17 Mar 2011 Link to this post

    Hello Vic,

    Unfortunately we are not sure about the exact reason for this problem. The exception is thrown from a Silvelirght routine that we are not able to debug or see what might have caused the problem. The good news is that we changed the problematic code a bit at our side and in the new version this problem might be resolved, however we are not able to confirm this 100%.
    Please, try the new version if you can and see if it this problem reappears. If the problem persists, to further review this issue, we would more information about the scenario. For instance, you can send us a sample document that produses the problems and any steps to help us try to replicate this at our side.

    Kind regards,
    Mike
    the Telerik team
  3. Vic
    Vic avatar
    40 posts
    Member since:
    Mar 2009

    Posted 21 Mar 2011 Link to this post

    Hi Mike,

    It has been determined that it happens when a user selects a section and then types over it w/o clicking delete/backspace first.

    We can't upgrade to the new version w/o a lot of testing, we use about 60% of your Silverlight controls. Was hoping for a quick fix.

    Thanks,
    Vic

  4. Vesko
    Admin
    Vesko avatar
    45 posts

    Posted 24 Mar 2011 Link to this post

    Hi Vic,

    We could try giving you more details about the problem and probably a solution for it. However as Mike said we will need a sample document that produces the problems and the steps to help us try to replicate this at our side. 

    Provided the above we will be able to try assist you resolving your problem.

    Greetings,
    Vesko
    the Telerik team
Back to Top