UPDATE: I solved this problem. It was caused by referencing a local Telerik dll in my project while at the same time having a different Telerik version installed. I'm assuming the Control was getting a mismatch between the local dll and one from the GAC.
I'm using an HtmlFormatProvider to store and retrieve text as HTML. I implemented the Cut, Copy, Paste controls by implementing a click handler on the toolbar button and calling the corresponding method on my private RadRichTextbox. When the Cut method is called it throws this exception:
Cannot cast the underlying exported value of type 'Telerik.WinControls.RichTextBox.FileFormats.Html.HtmlFormatProvider (ContractName="Telerik.WinControls.RichTextBox.FormatProviders.IDocumentFormatProvider")' to type 'Telerik.WinControls.RichTextBox.FormatProviders.IDocumentFormatProvider'.
Any suggestion would be much appreciated.
I'm using an HtmlFormatProvider to store and retrieve text as HTML. I implemented the Cut, Copy, Paste controls by implementing a click handler on the toolbar button and calling the corresponding method on my private RadRichTextbox. When the Cut method is called it throws this exception:
Cannot cast the underlying exported value of type 'Telerik.WinControls.RichTextBox.FileFormats.Html.HtmlFormatProvider (ContractName="Telerik.WinControls.RichTextBox.FormatProviders.IDocumentFormatProvider")' to type 'Telerik.WinControls.RichTextBox.FormatProviders.IDocumentFormatProvider'.
Any suggestion would be much appreciated.