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

Visual Studio Designer throws an exception when RadCartesianChart is selected

9 Answers 235 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 19 Jul 2014, 10:12 PM
The following exception is being thrown by the VS Designer when I either attempt to access the properties of the control or start to edit it in XAML.
FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Shell.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Attaching the project that exhibits this behavior (I renamed the zip file to jpg so that I can attach it here)
To repro:
1. Open Controls\Annotations.xaml
2. Click on the <telerikChart:RadCartesianChart x:Name="HeartRateZoneChart"

I can get around this issue, but rebuilding the project after the exception and reloading the designer, but this is very inconvenient.
Also, at run time, the application works as expected.
Thanks
Alex.

Stack Trace:
at Telerik.Windows.Controls.Design.GaugeGalleryContainer..ctor(Control galleryUI)
   at Telerik.Windows.Controls.Design.DesignTimegalleryAdornerProvider.Activate(ModelItem item) in c:\Builds\303\WindowsPhone\BuildAll_WP8\Sources\Design\Gallery\DesignTimeGalleryAdornerProvider.cs:line 42
   at Microsoft.Windows.Design.Interaction.AdornerProvider.InvokeActivate(EditingContext context, ModelItem item)
   at MS.Internal.Features.AdornerProviderFeatureConnector.FeatureProvidersAdded(ModelItem item, IEnumerable`1 extensions)
   at Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1.OnPolicyItemsChanged(Object sender, PolicyItemsChangedEventArgs e)
   at Microsoft.Windows.Design.Policies.ItemPolicy.OnPolicyItemsChanged(PolicyItemsChangedEventArgs e)
   at Microsoft.Windows.Design.Policies.SelectionPolicy.OnSelectionChanged(Selection newSelection)
   at Microsoft.Windows.Design.ContextItemManager.SubscribeProxy`1.SubscribeContext(ContextItem item)
   at Microsoft.Windows.Design.SubscribeContextCallback.Invoke(ContextItem item)
   at Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.OnItemChanged(ContextItem item)
   at Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.SetValue(ContextItem value)
   at Microsoft.Expression.DesignSurface.ViewModel.Extensibility.ExtensibilityManager.SetSelection(Selection selection)
   at Microsoft.Expression.DesignSurface.ViewModel.Extensibility.ExtensibilityManager.OnViewModelEarlySceneUpdatePhase(Object sender, SceneUpdatePhaseEventArgs args)
   at Microsoft.Expression.DesignSurface.ViewModel.SceneUpdatePhaseEventHandler.Invoke(Object sender, SceneUpdatePhaseEventArgs e)
   at Microsoft.Expression.DesignSurface.ViewModel.SceneViewModel.FireEarlySceneUpdatePhase(SceneUpdatePhaseEventArgs args)
   at Microsoft.Expression.DesignSurface.View.SceneViewUpdateScheduleTask.UpdateEarly()
   at Microsoft.Expression.Utility.Scheduler.ScheduleTask.Update()
   at Microsoft.Expression.Utility.Scheduler.SchedulingService.DispatchTasksAtPriority(DispatcherPriority priority)
   at Microsoft.Expression.Utility.Scheduler.SchedulingService.DispatcherToken.Dispatch(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

9 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 Jul 2014, 01:25 PM
Hi Alex,

This assembly is part of MS Visual Studio SDK. As you have noticed, It is only needed for design-time. You can download it from here.

Best regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Alex
Top achievements
Rank 1
answered on 24 Jul 2014, 04:55 AM
Hi Ves,
Thanks for your response, though you suggestion did not address my problem. Even after installing VS 2013 SDK I am still getting the same error message. I do see that Microsoft.VisualStudio.Shell.11.0.dll is in the GAC.
I also found similar query here: http://stackoverflow.com/questions/23219586/could-not-load-file-or-assembly-microsoft-visualstudio-shell-11-0-version-11-0.
Thanks
Alex.
0
Ves
Telerik team
answered on 28 Jul 2014, 03:47 PM
Hi Alex,

Just an additional question -- do you have VS 2012 installed or is it a machine with VS 2013 only? Here is a temporary workaround that you may use while we investigate the issue -- you can remove the design folder from the location where the referenced Telerik assemblies reside.

Best regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Alex
Top achievements
Rank 1
answered on 30 Jul 2014, 01:34 AM
Hi Ves,
I only have VS 2013 Update 2.
Could you, please, expand on the temporary workaround you suggested. I am not sure if I understand what you meant by "removing the design folder".
Thanks
Alex.
0
Ivaylo Gergov
Telerik team
answered on 01 Aug 2014, 04:15 PM
Hi Alex,

My colleague meant that you can temporary move the design folder which is placed for example in the : C:\Program Files (x86)\Telerik\UI for Windows Phone 8 Q2 2014\Binaries\WindowsPhone â€‹folder to another location so that it cannot be resolved.

Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Alex
Top achievements
Rank 1
answered on 02 Aug 2014, 02:45 AM
Thanks Ivaylo,
You suggestion worked - no more exceptions.
Is there any functionality that I lost, by moving the folder?
Alex.
0
Ves
Telerik team
answered on 06 Aug 2014, 02:47 PM
Hi Alex,

You will not be able to load the design time galleries for the chart. This is the only functionality you would lose. The chart will still work as expected both design-time and runtime.


Best regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mel
Top achievements
Rank 1
answered on 04 Sep 2015, 11:43 AM

I'm getting this same stack trace for UI for Windows Phone 8 Q2 2015 (using Telerik_UI_for_WindowsPhone8_2015_2_0624_DEV_hotfix). I've moved the design folder as stated but anytime I select XAML code related to a Telerik Chart the designer throws the stack trace.

Are there any other workarounds?

On a seemingly unrelated but maybe relevant topic. Whenever I start up VS on a new day I get a message stating that there is a new version of Telerik UI for Windows Phone 8 Q2 2015 (0624). I've downloaded it and copied the directories over my existing installation but the message still arrives each day. What is the procedure for upgrading with the hotfixes? Do you have any links to the procedure? I'm only asking because perhaps this stack trace issue has been fixed but I've applied the hotfix incorrectly.

 

Thanks

 

Mel

 
0
Ves
Telerik team
answered on 09 Sep 2015, 06:59 AM
Hi Mel,

In order to get rid of the exception, after renaming the design folder, you need to kill the VS designer process. You can open the task manager and search for "Microsoft Visual Studio XAML UI Designer (32 bit)" and kill it.

As for the repeating notifications, I am afraid this is a glitch on our side. You can temporarily disable these notifications as described in VS Extensions Options help topic.

Best regards,
Ves
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Alex
Top achievements
Rank 1
Answers by
Ves
Telerik team
Alex
Top achievements
Rank 1
Ivaylo Gergov
Telerik team
Mel
Top achievements
Rank 1
Share this question
or