Get Exception While Add RadRichTextBox ?

2 posts, 0 answers
  1. Ravi
    Ravi avatar
    10 posts
    Member since:
    Oct 2012

    Posted 13 Jan 2012 Link to this post

    Hello World 

    I am getting an exception when i am trying to use RadRichTextBox. Control is added to page successfully but when i am trying to load my page it gives me an exception

    Code : 4004
    Category : ManagedRuntimeError
    Message : System.TypeInitizlizationException : The Type initializer for 'Telerik.Windows.Document.UI.Extensibility.RadCompositionInitizlizer' threw..

    it opens the VS debugger 

    please let me know how the solve this kind of prob ASAP. my xaml code is

    <navigation:Page x:Class="PracticeAssignments.Home"
        xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"                
        xmlns:telerikWindowsControls="clr-namespace:Telerik.Windows;assembly=Telerik.Windows.Controls"   
        xmlns:telerikDocuments="clr-namespace:System;assembly=Telerik.Windows.Documents"
        xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
        xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        xmlns:telerikRichTextBoxCommands="clr-namespace:Telerik.Windows.Documents.RichTextBoxCommands;assembly=Telerik.Windows.Documents"
        xmlns:telerikRichTextBoxUI="clr-namespace:Telerik.Windows.Controls.RichTextBoxUI;assembly=Telerik.Windows.Controls.RichTextBoxUI"
        xmlns:telerikFormatProRTF="clr-namespace:Telerik.Windows.Documents.FormatProviders.Rtf;assembly=Telerik.Windows.Documents"
         
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
        Title="Home"
        Style="{StaticResource PageStyle}">
     
        <Grid x:Name="LayoutRoot">
            <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}" Margin="-54,-8,-62,-22">
                <StackPanel x:Name="ContentStackPanel" VerticalAlignment="Center">
                    <telerik:RadRichTextBox VerticalAlignment="Center" HorizontalAlignment="Center" Width="200"></telerik:RadRichTextBox>
                </StackPanel>
            </ScrollViewer>
        </Grid>
     
    </navigation:Page>
  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    104 posts

    Posted 16 Jan 2012 Link to this post

    Hello Ravi,

    The problem is probably due to a missing reference or wrong version of an assembly.
    Please check those, try deleting bin, obj and rebuilding. A list of all required assembly references can be found here.
    Hope this helps you. 

    Regards,
    Martin
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top