problem after updating Silverlight Telerik

9 posts, 0 answers
  1. Nadav
    Nadav avatar
    15 posts
    Member since:
    Sep 2010

    Posted 07 Apr 2011 Link to this post

    I've got a problem when updating the telerik dlls.

    The VS2010 extensions delected there was a new version (v.2011.1.315.1040) and I talk it to install it.
    (The old version was v.2010.3.1314.1040)

    Then I updated the toolbox and the project.

    Now when I try to open some of my xaml files I get this exception:

    System.Reflection.TargetInvocationException
    Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)
       at System.RuntimeMethodHandle.InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct signature, RuntimeType declaringType)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at Microsoft.Windows.Design.Features.FeatureManager.FeatureConnectorEntry.AttemptActivate()
       at Microsoft.Windows.Design.Features.FeatureManager.FeatureConnectorEntry.OnRequirementsChanged(Object sender, EventArgs e)
       at Microsoft.Windows.Design.RequirementValidator.OnRequirementChanged(Object sender, EventArgs e)
       at Microsoft.Windows.Design.RequirementSubscription.OnRequirementChanged()
       at Microsoft.Windows.Design.RequiresContextItemAttribute.RequireContextItemSubscription.OnContextItemChanged(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 MS.Internal.Host.ToolSubsystem.ActivateTool(ToolFactory toolFactory)
       at MS.Internal.Host.ToolSubsystem..ctor(EditingContext editingContext, DesignerContext designerContext)
       at MS.Internal.Host.Designer.Load()
       at MS.Internal.Designer.VSDesigner.Load()
       at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
       at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
       at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
       at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
       at MS.Internal.Host.Isolation.IsolatedDesigner.Load()
       at MS.Internal.Designer.DesignerPane.LoadDesignerView(Boolean isReload)

     
    MS.Internal.Validate+ValidationFailure
    Exception of type 'MS.Internal.Validate+ValidationFailure' was thrown.
       at MS.Internal.Design.DocumentModel.DocumentTrees.VirtualModel.VirtualModelDocumentItem.get_WrappedItem()
       at MS.Internal.Design.DocumentModel.DocumentTrees.VirtualModel.VirtualModelDocumentItem.<get_Properties>d__0.MoveNext()
       at MS.Internal.Design.DocumentModel.DocumentTreeManagers.ItemUpdater.PopulateDocumentNodeTable(DocumentItem item, DocumentNodeDictionary table, DocumentProperty container, DocumentItem predecessor, Int32 itemOrder, DocumentNodeDictionary filter, Int32 depth)
       at MS.Internal.Design.DocumentModel.DocumentTreeManagers.ItemUpdater.TableFromItem(DocumentItem item)
       at Microsoft.Windows.Design.DocumentModel.Trees.DocumentTreeManager.EnsureTable()
       at MS.Internal.Design.DocumentModel.DocumentTrees.VirtualModel.VirtualModelDocumentTreeManager.VirtualModelService.<Find>d__52.MoveNext()
       at Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1.OnPolicyItemsChanged(Object sender, PolicyItemsChangedEventArgs e)
       at Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1..ctor(FeatureManager manager)
       at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1..ctor(FeatureManager manager)
       at MS.Internal.Features.TaskProviderFeatureConnector..ctor(FeatureManager manager)

    Nadav

  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 07 Apr 2011 Link to this post

    Hi Nadav,

    Sorry for the troubles.
    Can you try the steps below, please?
    • Close all XAML files open in Visual Studio;
    • Use the Telerik -> RadControls for Silverlight -> Upgrade Wizard to update the references in your project;
    • Close Visual Studio
    • Start it again and reload your project
    • Check if a XAML file will get loaded properly.

    Please note, we haven't come across this problem before, so the steps above are my best guess for solving the designer problem you've experienced.

    Let me know if that helps.

    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. Nadav
    Nadav avatar
    15 posts
    Member since:
    Sep 2010

    Posted 07 Apr 2011 Link to this post

    Hi Erjan,

    I've already restarting VS2010 and it did not solve the problem..

    Nadav
  5. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 07 Apr 2011 Link to this post

    Hi Nadav,

    Did you upgrade the RadControls for Silverlight assembly references of your project?

    Best,
    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
  6. Nadav
    Nadav avatar
    15 posts
    Member since:
    Sep 2010

    Posted 07 Apr 2011 Link to this post

    What I did was:

    1. Opened the project, close all windows.
    2. Used the  Telerik\Rad Controls for Silverlight\Upgrade wizard to update the project (I assume that updates the references)
    3. Checked the update log, no errors.
    4. Used the Telerik\Rad Controls for Silverlight\Launch Toolbox Configurator to update the toolbox.
    5. Close VS2010
    6. Open VS2010
    7. Load the project
    8. Rebuild
    9. Open the xaml file.

    Nadav
  7. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 07 Apr 2011 Link to this post

    Hi Nadav,

    Thanks for the update!
    Sorry I can't help immediately. Can you try creating a new Telerik Silverlight project? Can you drag a control to a XAML page?
    Does the control get visualized properly?

    If that true, can you pack the project, then open a formal support ticket and send it to us for a review, please?

    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
  8. Christian
    Christian avatar
    12 posts
    Member since:
    Aug 2010

    Posted 19 Apr 2011 Link to this post

    I have the same problem with WPF after updating to   Q! 2011. Has someone found a solution to fix this exception?

     

    System.Reflection.TargetInvocationException
    Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)
       at System.RuntimeMethodHandle.InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct signature, RuntimeType declaringType)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at Microsoft.Windows.Design.Features.FeatureManager.FeatureConnectorEntry.AttemptActivate()
       at Microsoft.Windows.Design.Features.FeatureManager.FeatureConnectorEntry.OnRequirementsChanged(Object sender, EventArgs e)
       at Microsoft.Windows.Design.RequirementValidator.OnRequirementChanged(Object sender, EventArgs e)
       at Microsoft.Windows.Design.RequirementSubscription.OnRequirementChanged()
       at Microsoft.Windows.Design.RequiresContextItemAttribute.RequireContextItemSubscription.OnContextItemChanged(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 MS.Internal.Host.ToolSubsystem.ActivateTool(ToolFactory toolFactory)
       at MS.Internal.Host.ToolSubsystem..ctor(EditingContext editingContext, DesignerContext designerContext)
       at MS.Internal.Host.Designer.Load()
       at MS.Internal.Designer.VSDesigner.Load()
       at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
       at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
       at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
       at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
       at MS.Internal.Host.Isolation.IsolatedDesigner.Load()
       at MS.Internal.Designer.DesignerPane.LoadDesignerView(Boolean isReload)
      
       
    MS.Internal.Validate+ValidationFailure
    Exception of type 'MS.Internal.Validate+ValidationFailure' was thrown.
       at MS.Internal.Design.DocumentModel.DocumentTrees.VirtualModel.VirtualModelDocumentItem.get_WrappedItem()
       at MS.Internal.Design.DocumentModel.DocumentTrees.VirtualModel.VirtualModelDocumentItem.<get_Properties>d__0.MoveNext()
       at MS.Internal.Design.DocumentModel.DocumentTreeManagers.ItemUpdater.PopulateDocumentNodeTable(DocumentItem item, DocumentNodeDictionary table, DocumentProperty container, DocumentItem predecessor, Int32 itemOrder, DocumentNodeDictionary filter, Int32 depth)
       at MS.Internal.Design.DocumentModel.DocumentTreeManagers.ItemUpdater.TableFromItem(DocumentItem item)
       at Microsoft.Windows.Design.DocumentModel.Trees.DocumentTreeManager.EnsureTable()
       at MS.Internal.Design.DocumentModel.DocumentTrees.VirtualModel.VirtualModelDocumentTreeManager.VirtualModelService.<Find>d__52.MoveNext()
       at Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1.OnPolicyItemsChanged(Object sender, PolicyItemsChangedEventArgs e)
       at Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1..ctor(FeatureManager manager)
       at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1..ctor(FeatureManager manager)
       at MS.Internal.Features.TaskProviderFeatureConnector..ctor(FeatureManager manager)
  9. Christian
    Christian avatar
    12 posts
    Member since:
    Aug 2010

    Posted 19 Apr 2011 Link to this post

    Hello again,

    for anyone with the same issue with the new Q1 2011 version of the WPF telerik controls, here is the solution for my problem:

    After debugging the application I traced it back to the RadTabControl placed on my form which was the source of the exception.

    If you are using the new telerik version remove the SelectionChanged event handler from the RadTabControl and add it in the code behind cs file like:

    tabControlMainContent.SelectionChanged += tabControlMainContent_SelectionChanged;

    This removed the exception within the VS Visual Editor described above...

    To reproduce this behavior just place a RadTabControl on your Window and add a SelectionChanged event within your XAML code.

    Regards
    Chris
  10. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 20 Apr 2011 Link to this post

    Hello Christian,

    In deed we had some issues with the SelectionChanged and PreviewSelectionChanged event. The visual studio designer breaks because of the event definitions. Although the application will start and operate as expected the designer breaks. We have managed to fix the issue and you can find it in our latest internal build or in the upcoming SP1 Q1 2011. Another solution is to used code behind handler registrations as you have discovered yourself.

    Kind regards,
    Hristo
    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 banner