Could not load type

10 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Jun 2008

    Posted 22 Apr 2011 Link to this post


    I just installed the trail version of your silverlight component and i followed the online documentation on adding radcontrols to your toolbox, so i added the RadChart and then i double click on the control from the toolbox and i got this message. This is not Rad if you have to do crazy configuration just to get started...i reinstalled 3 times, i dont have the beta version of vs2010. Also i called your sales number today and i got hung up on 2 twice..know thats some bad luck.

    "Could not load type
    'System.Collections.ObjectModel.ReadOnlyDictionary'2' from assembly 'mscorlib,version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089

  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 25 Apr 2011 Link to this post

    Hi Michael,

    Sorry for the troubles indeed!
    We're working with limited capacity in the Easter holidays, hence the phone not answered.

    As per the RadChart error, do you have Silverlight 4 and the Silverlight 4 Tools installed?

    Kind regards,
    Erjan Gavalji
    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. Peter Van Dender
    Peter Van Dender avatar
    8 posts
    Member since:
    Jun 2009

    Posted 22 Jun 2011 Link to this post

    Hi,

    I have the same issue.

    I uninstalled the trial version (RadControls_for_Silverlight4_2011_1_0315_Trial.msi) to upgrade to a licensed version (RadControls_for_Silverlight_4_2011_1_0419_Dev.msi), but now I run into this issue.

    Whenever I try to put a Silverlight RadChart control onto my design surface, it raises this error (see screenshot).
    The older (trial) version worked fine.

    Kind regards,

    Peter
  5. Biliana Ficheva
    Admin
    Biliana Ficheva avatar
    99 posts

    Posted 23 Jun 2011 Link to this post

    Hello Peter,

    I wasn't able to reproduce the problem locally. However a possible reason could be if the toolbox didn't upgrade properly. 
    You could try the following in order fix the problem:
    • Close all Visual Studio instances
    • Start a Windows Explorer
    • Navigate to %localappdata%\Microsoft\VisualStudio\10.0
    • Delete the tbd files located there (note, you would need to have the System and Hidden files visible to see the TBD files)
    • Run Visual Studio and try to use RadChart 
    In case this doesn't help you could also try to start the RadControls_for_Silverlight_4_2011_1_0419_Dev.msi again and choose the Repair option.

    Let me know if that helps.

     Kind regards,
    Biliana
    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. Peter Van Dender
    Peter Van Dender avatar
    8 posts
    Member since:
    Jun 2009

    Posted 27 Jun 2011 Link to this post

    Hi Biliana,

    Thanks for your mail.

    Unfortunately it didn't solve the problem.
    I removed the tdb-files => tested in VS2010 => Error.
    I did run the msi with Repair => tested in VS2010 => Error.
    Removed the tdb files again => tested in VS2010 => Error.

    I tested with other controls (RadCalendar, RadGauge, RadClock), all of these work fine. It's just the RadChart that's raises this error.

    Kind regards,

    Peter

    PS: The upgrade of the existing code went fine. So existing RadChart-XAML is also ok.
    So I can continue developing by copy/pasting existing xaml to add new charts.
  7. Biliana Ficheva
    Admin
    Biliana Ficheva avatar
    99 posts

    Posted 27 Jun 2011 Link to this post

    Hi Peter,

    There is an incompatibility between VS 2010 SP1 and Silverlight 5 beta.
    Could you please take a look at the following forum post and tell me whether this is your case?

    Best wishes,
    Biliana
    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
  8. Peter Van Dender
    Peter Van Dender avatar
    8 posts
    Member since:
    Jun 2009

    Posted 28 Jun 2011 Link to this post

    Hi Biliana,

    It is a possibility. I do have VS2010 SP1 and the Silverlight 5 Beta.
    However, uninstalling the Silverlight 5 Beta didn't seem to solve the problem (I already tried this before), so I reinstalled it.

    If I understand correctly the problem lies with Microsoft, but they didn't provide a solution yet.

    Kind regards,

    Peter
  9. Biliana Ficheva
    Admin
    Biliana Ficheva avatar
    99 posts

    Posted 29 Jun 2011 Link to this post

    Hi Peter,

    Yes, we are waiting for update from Microsoft and as soon as it is a fact we will write in the forum post.

    All the best,
    Biliana
    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
  10. Brian
    Brian avatar
    3 posts
    Member since:
    Jun 2011

    Posted 26 Jul 2011 Link to this post

    Any updates on this error:
    Could not load type 'System.Collections.ObjectModel.ReadOnlyDictionary`2' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, 
  11. Peter Van Dender
    Peter Van Dender avatar
    8 posts
    Member since:
    Jun 2009

    Posted 27 Jul 2011 Link to this post

    Hi Brian,

    I eventually succeeded in uninstalling Silverlight 5 Beta.
    The problem was that after uninstalling it, it was still being used by the Silverlight Launcher (sllauncher.exe in folder C:\Program Files\Microsoft Silverlight). Version 5 was still there.

    If I remember correctly, I had to
    - reinstall SVL 5 Beta
    - remove it with CCleaner. (There was no Uninstall option in Add/Remove Programs!)
    - Shift-Delete the folder C:\Program Files\Microsoft Silverlight
    - Let CCleaner clean up the registry
    - reinstall SVL 4

    SVL 5 also caused problems with ChildWindows (CPU throught the roof for some minutes)
    The next time I'll test a SVL Beta, I'm going to do it on a Virtual Machine! ;-)

    Kind regards,

    Peter
Back to Top
DevCraft banner