Sitefinity 4 and advanced Silverlight control - Bugs & Issues - Bugs & Issues - Progress Community

Sitefinity 4 and advanced Silverlight control

 Bugs & Issues

Sitefinity 4 and advanced Silverlight control

  • Sitefinity 4 and advanced Silverlight control
  • Dear Telerik,

    I am evaluating Sitefinity 4.0 as a platform my client intents to use for hosting multiple Silverlight dashboards. So far I was very happy with what I managed to achieve in reasonably short time, creating advanced charts and grids with SL (using RadControls for SL) and putting them nicely in Sitefintiy website. Today I came across the problem of passing some parameters into SL control. I followed this tutorial I found in documentation on your website (same comes as pdf with Sitefinity SDK), but I keep getting following exception:

    Assembly 'BookWidget, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not contain a Web resource with name 'BookWidget.Resources.Book.js'. (see first screenshot for full message and stack trace)

    I double checked if Book.js is market as Embedded Resource, followed tutorial line by line copying your code, even tried doing same tutorial second time, thinking I must have missed something as it simply got same exception again and again. I also used Red Gate's Reflector to check if resource is added to assembly and it is (see second screenshot).

    I use Sitefinity 4.0 RC (build 4.0.992.0) and I am just about to upgrade it to latest release.

    If this is known issue has it been fixed in latest release? Or maybe I am simply missing something?

    Any help would be highly appreciated.

    Regards,
    Matt Uliasz

  • Hello Matt,

    Thank you for using our services.

    Can you please make sure that you have mapped the webresource int eh AssemblyInfo.cs file in Properties forlder of the BookWidget code library? Bellow is what the assembly info should contain:
    [assembly: WebResource("BookWidget.Resources.Book.js", "text/javascript")]

    Best wishes,
    Radoslav Georgiev
    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
  • Hi Radoslav,

    Many thanks for your response, although I suppose all will agree with me in saying that this step should be included in tutorial.

    Regards,
    Matt
  • Hello Matt,

    We have documented this inside Embedding resources into one assembly


    All the best,
    Ivan Dimitrov
    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
  • Ivan,

    I probably have not came across this document as I was referring to Silverlight controls development. Thanks for your answers anyway.

    Regards,
    Matt