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

The type 'Office_BlackTheme' was not found

9 Answers 172 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
MM
Top achievements
Rank 1
MM asked on 16 May 2011, 11:11 AM
I created a sample silverlight application with just the ReportViewer in xaml. When I run I immediately get the following message:
The type 'Office_BlackTheme' was not found because 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls' is an unknown namespace. [Line: 8 Position: 36]

I didn't set the theme, my xaml is like this.

<my:ReportViewer ReportServiceUri="http://localhost:8731/ReportService.svc" Report="ReportTester.OtpReport, ReportTester, Verson=1.0.0.0, Culture=neutral, PublicKeyToken=null" />

I've only got the Telerik Reporting stuff installed. So not any of the other licenses.

Hope someone can shine a light.

9 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 18 May 2011, 08:32 AM
Hi MM,

The default control template for the Silverlight ReportViewer depends on Telerik RadControls for Silverlight. This means that you should use the corresponding RadControls for Silverlight version , available at the time of the Telerik Reporting release or the one we provided in our examples (<install dir ...>\Reporting Q1 2011\Examples\CSharp\SilverlightDemo\bin) This is duly noted in the System Requirements in our documentation. In other words, your should add references to the following assemblies in your Silverlight project:
  • Telerik.ReportViewer.Silverlight.dll (located in <install dir ...>\Telerik\Reporting Q1 2011\Bin)
  • Telerik.Windows.Controls.dll
  • Telerik.Windows.Controls.Input.dll
  • Telerik.Windows.Controls.Navigation.dll
Step by step instructions are available in the How to: Add report viewer to a Silverlight application

Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
MM
Top achievements
Rank 1
answered on 18 May 2011, 08:42 AM
I did find the dlls after installing the examples as well. Though I'm wondering, we only have a license for Telerik Reporting, not for the RadControls for Silverlight. Are we allowed to use the Telerik Reporting Silverlight Viewer without the RadControls license?
0
Steve
Telerik team
answered on 18 May 2011, 12:07 PM
Hello MM,

For the sole purses of the Telerik Report Viewer for Silverlight, you may use the TRIAL version of Telerik RadControls for Silverlight – they will not throw trial messages when used in any version of Telerik Reporting. If, however, the Silverlight controls are used outside the Telerik ReportViewer, they will show a trial message.

Regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nisha
Top achievements
Rank 1
answered on 21 May 2012, 10:39 AM
Hi,
Iam facing the same problem.whenever i try to execute this error is poping..i have added all necessary refrences as said in th post and also downloaded the latest trial version.Pls help
0
Steve
Telerik team
answered on 22 May 2012, 03:34 PM
Hello Nisha,

Open the Visual Studio examples we ship with the product, run the Silverlight demo project and let us know whether you get the same error in it. If not then most likely you're missing a reference or it is a reference to incorrect version. As explained in our previous reply, you should use the corresponding RadControls for Silverlight version, available at the time of the Telerik Reporting release or the one we provided in our examples (<install dir ...>\Reporting Q1 2011\Examples\CSharp\SilverlightDemo\bin).

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Debashree
Top achievements
Rank 1
answered on 10 Sep 2012, 08:18 PM
Hi,

I face the same problem and I don't have version mismatch. Using Q2 2012 telerik trial with Silverlight 5 and .net 4.0.

I get the following runtime error (XamlParseException), when trying to use Telerik reportviewer for Silverlight:
The type '--xxxx--' was not found because 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls' is an unknown namespace.
OR (in another project):
The type 'Office_BlackTheme' was not found because 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls' is an unknown namespace.

The exception is thrown at InitializeComponent() in the constructor of xaml.

The sample (example) apps coming from Telerik run fine for me.
The problem arises in my application when I try to access the reportviewer control in a Silverlight app which has a different name than the one as the hosting web project. It runs fine as long as reportviewer is placed in the silverlight project which has same name as hosting project.
 
Please let me know if you know how to resolve this.
0
Chavdar
Telerik team
answered on 13 Sep 2012, 04:56 PM
Hi,

We are not aware of any other reasons for these errors except missing or invalid references to the mentioned assemblies. Please, check them carefully and if the problem still persists we will appreciate if you can send us a sample solution that reproduces the issue in order to review it more carefully and give you a proper advice.

All the best,
Chavdar
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Irshad
Top achievements
Rank 1
answered on 12 Nov 2012, 10:09 AM
Hi Telerik Team,

I also have the same problem when i am trying to hide the navigation icons from the strip in Telerik Report Viewer Control.
I am using Telerik Q3 2010 Licensed. I have used blend to edit the template, while doing so, Some styles for the ReportViewer control is created. While executing the project, i have shown this error - "Telerik.Windows.Controls.StyleManager.BasedOn' threw an exception. "

 Here I'm giving the complete error message, Hope it would help.

<p><b>
Message: Unhandled Error in Silverlight Application Set property 'Telerik.Windows.Controls.StyleManager.BasedOn' threw an exception. [Line: 102 Position: 72]   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Telerik_ReportViewer.MainPage.InitializeComponent()
   at Telerik_ReportViewer.MainPage..ctor()
   at Telerik_ReportViewer.App.Application_Startup(Object sender, StartupEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
Line: 1
Char: 1
Code: 0
URI: http://localhost:56726/Silverlight.js
 
</b></p>

Also... I tried to attach the sample project as asked in earlier post.... i could not attach a zipped file...
Please suggest..

Thanks 
Irshad


0
Steve
Telerik team
answered on 12 Nov 2012, 11:56 AM
Hello Irshad,

Such an exception is most likely caused by the fact that you have edited the template. Make sure that wherever you're using StyleManager.BasedOn, you have the TargetType property set before the StyleManager.BasedOn property. Another solution is to use the telerik.StyleManager.Theme property instead of StyleManager.BasedOn. For more information refer to Setting a Theme help article.

Kind regards,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
MM
Top achievements
Rank 1
Answers by
Steve
Telerik team
MM
Top achievements
Rank 1
Nisha
Top achievements
Rank 1
Debashree
Top achievements
Rank 1
Chavdar
Telerik team
Irshad
Top achievements
Rank 1
Share this question
or