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
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
Best wishes,
Steve
the Telerik team
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
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
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 >
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.
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 >
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
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!