This is a migrated thread and some comments may be shown as answers.

Arg_InvalidCastException

3 Answers 27 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Vic
Top achievements
Rank 2
Vic asked on 14 Mar 2011, 02:03 AM

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()

3 Answers, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 17 Mar 2011, 10:31 AM
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
0
Vic
Top achievements
Rank 2
answered on 21 Mar 2011, 09:13 PM
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

0
Vesko
Telerik team
answered on 24 Mar 2011, 10:29 AM
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
Tags
RichTextBox
Asked by
Vic
Top achievements
Rank 2
Answers by
Mike
Telerik team
Vic
Top achievements
Rank 2
Vesko
Telerik team
Share this question
or