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

Missing using in .g.i.cs file

2 Answers 104 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Andrea Rapuzzi
Top achievements
Rank 1
Andrea Rapuzzi asked on 22 Oct 2013, 03:19 PM
Hi,
I've installed the last build of Telerik Controls for Silverlight (2013.3.1016.1050) and now when I build my solution I get the error:

The type or namespace name 'RadRichTextBox' could not be found (are you missing a using directive or an assembly reference?)

 in my GenericHtmlEditor.g.i.cs file.

In effect this file contains the following:

...
 
        internal Telerik.Windows.Controls.RadWindow radEditor;
         
        internal System.Windows.Controls.Grid LayoutRoot;
         
        internal Telerik.Windows.Documents.FormatProviders.Html.HtmlDataProvider htmlDataProvider;
         
        internal RadRichTextBoxRibbonUI radRichTextBoxRibbonUI;
         
        internal Telerik.Windows.Controls.RadRibbonTab HomeTab;
         
        internal RadRichTextBox editor;
         
        internal Telerik.Windows.Controls.RadButton confirm;
         
        internal Telerik.Windows.Controls.RadButton cancel;
 
...


I tried to perform both a solution clean command and a manual removal of the project's bin and obj folder. Unfortunately, when I rebuild, the same error is always shown.

Have you any suggestion?

2 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 23 Oct 2013, 11:50 AM
Hello,

Please note that as of Q3 2013 you need to reference two additional assemblies in your project in order to use RadRichTextBox - Telerik.Windows.Documents.Flow.dll and Telerik.Windows.Documents.Core.dll. I suggest you refer to this help article where the backward compatibility between versions is listed.

If this does not resolve the issue, could you please verify all references in your project point to the same version of RadControls for Silverlight? In case this is not the cause of the problem either we would appreciate it if you open a support ticket and send us your project.

I hope this helps! Let me know how it goes.

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Andrea Rapuzzi
Top achievements
Rank 1
answered on 24 Oct 2013, 07:48 AM
Petya,
Adding Telerik.Windows.Documents.Flow.dll and Telerik.Windows.Documents.Core.dll did the trick!

Thank you very much!
Tags
RichTextBox
Asked by
Andrea Rapuzzi
Top achievements
Rank 1
Answers by
Petya
Telerik team
Andrea Rapuzzi
Top achievements
Rank 1
Share this question
or