Designer Exception

19 posts, 0 answers
  1. Roberto Montoya
    Roberto Montoya avatar
    3 posts
    Member since:
    Apr 2010

    Posted 15 Jul 2010 Link to this post

    Hello-

    I'm getting the following exception in the Visual Studio designer in both XAML and Design views:

    IOException was thrown on 'RadProgressBar': Set property 'System.Windows.ResourceDictionary.Source' threw an exception.

    Cannot locate resource 'themes/generictransparent.xaml'.

    at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access) at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access) at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream() at System.IO.Packaging.PackWebResponse.GetResponseStream() at System.IO.Packaging.PackWebResponse.get_ContentType() at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response) at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType) at System.Windows.ResourceDictionary.set_Source(Uri value) at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_Source>b__1c4(Object target, Object value) at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)


    This also occurs with other Telerik controls.

    The code compiles and runs fine but the error appears at design-time only.

  2. Steve Evans
    Steve Evans avatar
    23 posts
    Member since:
    May 2010

    Posted 16 Jul 2010 Link to this post

    I too am and have been for some time getting a very similar error:

    IOException was thrown on "radExpanderControlParam": Set property 'System.Windows.ResourceDictionary.Source' threw an exception. 

    Cannot locate resource 'themes/generictransparent.xaml'.
       at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
       at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
       at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
       at System.IO.Packaging.PackWebResponse.GetResponseStream()
       at System.IO.Packaging.PackWebResponse.get_ContentType()
       at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response)
       at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)
       at System.Windows.ResourceDictionary.set_Source(Uri value)
       at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_Source>b__1c4(Object target, Object value)
       at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)

    I have been getting this with the Q2 2010 beta controls and this morning I have downloaded the latest non beta (July 14) versions of the controls and I am still getting the same error. Whilst I can live with it as everything still compiles its annoying as it renders the designer useless.

    Any info would be great.

    Thanks, Steve

  3. DevCraft Release
  4. Steve Evans
    Steve Evans avatar
    23 posts
    Member since:
    May 2010

    Posted 16 Jul 2010 Link to this post

    Something seems to have got screwed up on this post when I pasted in the stack trace as most of my last comment seems to have got chopped off. Anyway, the bottom line is that I am getting a very similar issue that renders the designer useless.

    The top of the stack trace is:

    Cannot locate resource 'themes/generictransparent.xaml'.

    at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
       at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
       at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
       at System.IO.Packaging.PackWebResponse.GetResponseStream()

  5. Roberto Montoya
    Roberto Montoya avatar
    3 posts
    Member since:
    Apr 2010

    Posted 16 Jul 2010 Link to this post

    I was able to resolve this issue yesterday.  I have a solution with 3 projects all using the Telerik controls but the issue was happening with the views in 1 project only.  When I compared the differences I noticed that the project that the issue was occuring on did not have a reference to the RadDocking assembly while the others did.  The views in that project themselves don't use any of the Docking controls so I did not have a reference to that assembly.  However, they host controls from another project that do use Docking.  Once I added the reference to the RadDocking assembly the issue was resolved.

    FYI, this only started happening once I downloaded the latest version of the controls.

    I hope this helps.

  6. Steve Evans
    Steve Evans avatar
    23 posts
    Member since:
    May 2010

    Posted 16 Jul 2010 Link to this post

    Thanks for the update, I'll certainly have a look and see if this is the case with our solution.

    Steve.

  7. Vladislav
    Admin
    Vladislav avatar
    192 posts
    Member since:
    Jun 2013

    Posted 19 Jul 2010 Link to this post

    Hello Roberto, Steve,

    Unfortunately we aren't aware of such problem and we wasn't able to reproduce it.
    I have created a small sample project using the RadProgressBar and it is rendered properly in the Visual Studio designer. Can you please check it on your systems and let us know if you still observe this issue?

    Thank you in advance.

    Regards,
    Vladislav
    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. Ruslan Devyatko
    Ruslan Devyatko avatar
    5 posts
    Member since:
    Dec 2009

    Posted 21 Jul 2010 Link to this post

    I'm having the same problem.

    The only difference is that it happens in Expression Blend 4. If I open my project in VS2010 everything is ok, but when I use Expression Blend just see an empty window without any RadControl on it and get the same message. I also got the same result with your example app. Let me know please, if you can repeat that issue...

  9. Steve Evans
    Steve Evans avatar
    23 posts
    Member since:
    May 2010

    Posted 22 Jul 2010 Link to this post

    Hi, 

    Thanks for getting back to us regarding this.

    I have opened your sample project and whilst I had to change the reference to the location on my local machine the project builds and runs. However, the designer still does not render the progress bar but I am not getting the same error reported earlier in this thread.

    See attached screen shot.

    Thanks, Steve

  10. Wasif Jahangir
    Wasif Jahangir avatar
    35 posts
    Member since:
    May 2010

    Posted 22 Jul 2010 Link to this post

    im still having the same issue. i ve added docking.dll but still in Expression blend im getting this error. however in VS 2010 it works perfectly fine.
    what else could be possibility ?

  11. Vladislav
    Admin
    Vladislav avatar
    192 posts
    Member since:
    Jun 2013

    Posted 26 Jul 2010 Link to this post

    Hi all,

    @Ruslan, Wasif - Can you please share with us are you using our WPF35 or WPF40 dlls?
    What is the last number of the version string for the Telerik.Windows.Controls.dll? Is it 35 or 40?

    @Steve - From the screen shot provided it seems that the reference to our dll is not resolved properly.
    Can you please share with us the version of our binary used? And what is the "Target framework" of your project?
    (It can be checked under the Properties option for the project).

    Thank you for your cooperation.

    Kind regards,
    Vladislav
    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

  12. Will Ferguson
    Will Ferguson avatar
    40 posts
    Member since:
    Aug 2009

    Posted 27 Jul 2010 Link to this post

    I have a similar problem

    {"Set property 'System.Windows.ResourceDictionary.Source' threw an exception."}

    when dragging a report viewer onto a wpf window.

  13. Steve Evans
    Steve Evans avatar
    23 posts
    Member since:
    May 2010

    Posted 27 Jul 2010 Link to this post

    Hi Vladislav,

    I have just re-opened the project that you supplied  and that I supplied the screen shot with the designer not working correctly and the designer appears to be working. That said, the target framework for the projects that are not working are version 4 and the version of the telerik controls we are using is: 2010.2.714.40.

    Hope this helps.

    Thanks, Steve


  14. Ruslan Devyatko
    Ruslan Devyatko avatar
    5 posts
    Member since:
    Dec 2009

    Posted 27 Jul 2010 Link to this post

    @Vladislav - to say honestly I got this error in Expression Blend 4 with both WPF35 and PF40 dlls.

    The last two numbers of the version string for the Telerik.Windows.Controls.dll in WPF35 and WPF 40 are 714.35.

    Hope this will help!

  15. Will Ferguson
    Will Ferguson avatar
    40 posts
    Member since:
    Aug 2009

    Posted 27 Jul 2010 Link to this post

    OK so what version of .Net framework should we be targeting to use telerik reporting please.

  16. Chintan Shah
    Chintan Shah avatar
    9 posts
    Member since:
    Feb 2010

    Posted 28 Jul 2010 Link to this post

    Hello,

    I am having same exception in Expression Blend 3.
    Steps to reproduce.

    1. I was using earlier version of telerik control in my project.
    2. I installed newer version of Telerik control.
    3. Used Upgrade wizard of Telerik to upgrade project.
    4. Added RibbonBar to project.
    5. Build the project.
    6. Opened project in Blend.

    I have added all the assemblies provided by telerik in the project. including Docking and Gauge control assembly. But still i am having problem. Hopefully this steps help you identify problem.

    Thanks.

  17. Will Ferguson
    Will Ferguson avatar
    40 posts
    Member since:
    Aug 2009

    Posted 28 Jul 2010 Link to this post

    Fixed my problem by downloading the latest wpf 4.0 Binaries from telerik . Was using 3.5. I am targeting .net 4.0 in VS2010
    All my toolbar items are back now and not greyed out. I can successfully drag a reportviewer onto a window.xaml.

  18. Vladislav
    Admin
    Vladislav avatar
    192 posts
    Member since:
    Jun 2013

    Posted 29 Jul 2010 Link to this post

    Hello all,

    We have addressed some of these issues in our latest internal build, released 23.07.2010.
    May I ask you to get this version of our controls and try if they work properly in your projects?

    It will be great if you can open a support ticket for every particular problem encountered in order to address it in timely manner.
    Thank you for your feedback, it is really valuable for us.

    Sincerely yours,
    Vladislav
    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

  19. Ruslan Devyatko
    Ruslan Devyatko avatar
    5 posts
    Member since:
    Dec 2009

    Posted 29 Jul 2010 Link to this post

    @Vladislav - I've already checked the latest fix. It's the REAL FIX, cause it's finally fixed that error! Thanks a lot!!! By the way, can you please tell me what "a support ticket" is? 

    P.S. I'm new to Telerik, but hope not for a while ;-)

  20. Tina Stancheva
    Admin
    Tina Stancheva avatar
    2966 posts
    Member since:
    Apr 2014

    Posted 30 Jul 2010 Link to this post

    Hi Ruslan Devyatko,

    The support ticket system is a way to send your questions directly to our support officers. You can attach sample projects and thoroughly explain your issues and get a quick and accurate response.

    For more information about the support system and how to send a support ticket you can follow the Read FAQ link in the Questions section in your account. Also, to send a support ticket you can follow the Get Support link in the YourSupport section in your account.

    I hope this info will help you. Let us know if we can further assist you.

    Sincerely yours,
    Tina Stancheva
    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

Back to Top
DevCraft Release