This is a migrated thread and some comments may be shown as answers.

Designer Exception

18 Answers 381 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roberto Montoya
Top achievements
Rank 1
Roberto Montoya asked on 15 Jul 2010, 06:29 PM
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.

18 Answers, 1 is accepted

Sort by
0
Steve Evans
Top achievements
Rank 1
answered on 16 Jul 2010, 10:16 AM
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

0
Steve Evans
Top achievements
Rank 1
answered on 16 Jul 2010, 10:20 AM
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()
0
Roberto Montoya
Top achievements
Rank 1
answered on 16 Jul 2010, 03:16 PM
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.
0
Steve Evans
Top achievements
Rank 1
answered on 16 Jul 2010, 05:36 PM
Thanks for the update, I'll certainly have a look and see if this is the case with our solution.

Steve.
0
Vladislav
Telerik team
answered on 19 Jul 2010, 02:40 PM
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
0
Ruslan Devyatko
Top achievements
Rank 1
answered on 21 Jul 2010, 06:05 PM

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...

0
Steve Evans
Top achievements
Rank 1
answered on 22 Jul 2010, 08:56 AM
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
0
Wasif Jahangir
Top achievements
Rank 1
answered on 22 Jul 2010, 03:05 PM
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 ?
0
Vladislav
Telerik team
answered on 26 Jul 2010, 02:42 PM
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
0
Will Ferguson
Top achievements
Rank 1
answered on 27 Jul 2010, 06:23 AM
I have a similar problem

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

when dragging a report viewer onto a wpf window.

0
Steve Evans
Top achievements
Rank 1
answered on 27 Jul 2010, 08:26 AM
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


0
Ruslan Devyatko
Top achievements
Rank 1
answered on 27 Jul 2010, 08:59 AM

@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!

0
Will Ferguson
Top achievements
Rank 1
answered on 28 Jul 2010, 12:13 AM
OK so what version of .Net framework should we be targeting to use telerik reporting please.
0
Chintan Shah
Top achievements
Rank 2
answered on 28 Jul 2010, 10:43 AM
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.

0
Will Ferguson
Top achievements
Rank 1
answered on 29 Jul 2010, 12:21 AM
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.
0
Vladislav
Telerik team
answered on 29 Jul 2010, 02:15 PM
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
0
Ruslan Devyatko
Top achievements
Rank 1
answered on 29 Jul 2010, 04:04 PM

@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 ;-)

0
Tina Stancheva
Telerik team
answered on 30 Jul 2010, 10:02 AM
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
Tags
General Discussions
Asked by
Roberto Montoya
Top achievements
Rank 1
Answers by
Steve Evans
Top achievements
Rank 1
Roberto Montoya
Top achievements
Rank 1
Vladislav
Telerik team
Ruslan Devyatko
Top achievements
Rank 1
Wasif Jahangir
Top achievements
Rank 1
Will Ferguson
Top achievements
Rank 1
Chintan Shah
Top achievements
Rank 2
Tina Stancheva
Telerik team
Share this question
or