Visual Studio Designer throws an exception when RadCartesianChart is selected

10 posts, 0 answers
  1. Alex
    Alex avatar
    14 posts
    Member since:
    Nov 2013

    Posted 19 Jul 2014 Link to this post

    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)
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 23 Jul 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Alex
    Alex avatar
    14 posts
    Member since:
    Nov 2013

    Posted 23 Jul 2014 in reply to Ves Link to this post

    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.
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 28 Jul 2014 Link to this post

    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.

     
  6. Alex
    Alex avatar
    14 posts
    Member since:
    Nov 2013

    Posted 29 Jul 2014 in reply to Ves Link to this post

    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.
  7. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 01 Aug 2014 Link to this post

    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.

     
  8. Alex
    Alex avatar
    14 posts
    Member since:
    Nov 2013

    Posted 01 Aug 2014 in reply to Ivaylo Gergov Link to this post

    Thanks Ivaylo,
    You suggestion worked - no more exceptions.
    Is there any functionality that I lost, by moving the folder?
    Alex.
  9. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 06 Aug 2014 Link to this post

    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.

     
  10. Mel
    Mel  avatar
    1 posts
    Member since:
    Oct 2013

    Posted 04 Sep 2015 in reply to Ves Link to this post

    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

     
  11. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 09 Sep 2015 Link to this post

    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
Back to Top
DevCraft banner