The type 'Office_BlackTheme' was not found

10 posts, 0 answers
  1. MM
    MM avatar
    8 posts
    Member since:
    Oct 2009

    Posted 16 May 2011 Link to this post

    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.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 18 May 2011 Link to this post

    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
  3. DevCraft banner
  4. MM
    MM avatar
    8 posts
    Member since:
    Oct 2009

    Posted 18 May 2011 Link to this post

    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?
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 18 May 2011 Link to this post

    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
  6. Nisha
    Nisha avatar
    1 posts
    Member since:
    Aug 2012

    Posted 21 May 2012 Link to this post

    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
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 May 2012 Link to this post

    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 >

  8. Debashree
    Debashree avatar
    1 posts
    Member since:
    Aug 2012

    Posted 10 Sep 2012 Link to this post

    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.
  9. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 13 Sep 2012 Link to this post

    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 >

  10. Irshad
    Irshad avatar
    6 posts
    Member since:
    Oct 2012

    Posted 12 Nov 2012 Link to this post

    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


  11. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 12 Nov 2012 Link to this post

    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!

Back to Top
DevCraft banner