Cannot find type Telerik.WinControls.Design.NewItemGlyph in module Telerik.WinControls.dll.

6 posts, 0 answers
  1. Pieter
    Pieter avatar
    34 posts
    Member since:
    Jan 2011

    Posted 03 Oct 2011 Link to this post

    I have a RadPaneGroup with Panes that have a header description. Due to the length of the header descriptions and the number of Panes (4) the paneGroup takes up quite qa lot of witdth. If I set the Width of the panegroep with for example Width=700 I get a designer error as displayed below. If I do a binary scan I find the NewItemGlyph in Telerik.Windows.Controls and Telerik.Windows.Controls.UI, so I included those references. Unfortunately this does not solve the error. The application still runs.

    Any clues how to solve this?
    Telerik.Windows.ControlsSystem.Reflection.TargetInvocationException
    Exception has been thrown by the target of an invocation.
    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Delegate.DynamicInvokeImpl(Object[] args)
    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)
    System.TypeLoadException
    Cannot find type Telerik.WinControls.Design.NewItemGlyph in module Telerik.WinControls.dll.
    at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
    at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError)
    at Microsoft.MetadataReader.MetadataOnlyModule.ResolveTypeRef(ITypeReference typeReference)
    at Microsoft.MetadataReader.MetadataOnlyTypeReference.GetResolvedTypeWorker()
    at Microsoft.MetadataReader.TypeProxy.GetResolvedType()
    at Microsoft.MetadataReader.TypeProxy.GetHashCode()
    at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.GetTypeForReflectableType(Reflectable`1 reflectableType)
    at MS.Internal.Metadata.ClrType.GetTypeMetadata(Type type)
    at MS.Internal.Metadata.ClrType.get_BaseType()
    at MS.Internal.Design.Metadata.Xaml.XamlType.<GetAllAttachableProperties>d__7.MoveNext()
    at MS.Internal.Design.Metadata.Xaml.XamlType.<FindAttachableProperties>d__0.MoveNext()
    at Microsoft.Windows.Design.Metadata.Xaml.XamlExtensionImplementations.<FindAttachableProperties>d__7.MoveNext()
    at MS.Internal.VirtualModel.VirtualModelPropertyCollection.<GetUncachedProperties>d__0.MoveNext()
    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
    at MS.Internal.VirtualModel.VirtualModelPropertyCollection.GetEnumerator()
    at MS.Internal.Designer.PropertyEditing.Model.Properties.ModelPropertyMerger.<GetFirstProperties>d__0.MoveNext()
    at MS.Internal.Designer.PropertyEditing.Views.PropertyEntryReader.RedraftEntries(IPropertyViewManager viewManager, Selection selection, Boolean attachedOnly, IEventCodeBehindProxy eventCodeBehindProxy, CategoryList categoryList)
    at MS.Internal.Designer.PropertyEditing.PropertyInspector.UpdateCategories(Selection selection, Boolean attachedOnly, IEntryReader entryReader)
    at MS.Internal.Designer.PropertyEditing.PropertyInspector.RefreshPropertyList(Boolean attachedOnly)
    at MS.Internal.Designer.PropertyEditing.PropertyInspector.OnSelectionChangedIdle()

  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 06 Oct 2011 Link to this post

    Hello Pieter,

    Could you please give us some more details about your application - are you using RadControls for WPF or RadControls for WinForms?
    If you could send us a sample project in which we can observe the issue and run it here locally, we will be able to debug and let you know where the problem lies.

    Best wishes,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pieter
    Pieter avatar
    34 posts
    Member since:
    Jan 2011

    Posted 09 Oct 2011 Link to this post

    Hi Konstantina,

    The problem occurs in an application that uses a lot of components and libraries that I'm not allowed to make public. So I created a new project in a solution that does reproduce the problem. The size of the project is 20MB because we use an External_DLL directory where all external dll's are located, including the Telerik ones.

    The application runs, but if you click around in the Xaml the error occurs. In the original version Visual Studio also starts to use 100% of the processor core it's running on, this version does not have that problem.

    You can download the solution from this link.

    Update: the problem can be solved by adding the Telerik.WinControls.UI and Telerik.Wincontrols.UI.Design as references to the project you are editing. Strange enough this problem initially did not occur, I could edit the project without any problem. Halfway the development process the error mentioned kicked in. The dll's are only used at design time, so that's why the app could run normally even with the design time error.

    Update 2: With the dll's added the problem still occurs but less frequently and can be solved by reloading the designer or recompiling.
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Oct 2011 Link to this post

    Hello Pieter,

    Thank you for the sample project.

    I am afraid I wasn't able to observe the issue. Could you please send us a step-by-step explanation how to reproduce the issue.
    However, I noticed that the assemblies for WPF RadControls are with a version of an internal build. Initially, internal builds are for development purposes only and they haven't gone through the whole QA process and some issues are possible.

    Kind regards,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  6. Pieter
    Pieter avatar
    34 posts
    Member since:
    Jan 2011

    Posted 12 Oct 2011 Link to this post

    To reproduce the problem:

    • Open the solution
    • Open the WindowTelerikTest.xaml
    • Just click a few times in different places of the XAML code without changing anything

    On my machine the designer then crashes. This also happens if I try different dll's, for example the RadControls_for_WPF40_2011_2_0920_Dev_ManualInstalls.zip.

    I just did it using the dlls from RadControls_for_WPF40_2011_2_0920_Dev_ManualInstalls.zip and then got the following error

    System.TypeLoadException
    Cannot find type Telerik.WinControls.Design.RadItemDesigner in module Telerik.WinControls.dll.
       at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
       at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError)
       at Microsoft.MetadataReader.MetadataOnlyModule.ResolveTypeRef(ITypeReference typeReference)
       at Microsoft.MetadataReader.MetadataOnlyTypeReference.GetResolvedTypeWorker()
       at Microsoft.MetadataReader.TypeProxy.GetResolvedType()
       at Microsoft.MetadataReader.TypeProxy.GetHashCode()
       at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.GetTypeForReflectableType(Reflectable`1 reflectableType)
       at MS.Internal.Metadata.ClrType.GetTypeMetadata(Type type)
       at MS.Internal.Metadata.ClrType.get_BaseType()
       at MS.Internal.Design.Metadata.Xaml.XamlType.<GetAllAttachableProperties>d__7.MoveNext()
       at MS.Internal.Design.Metadata.Xaml.XamlType.<FindAttachableProperties>d__0.MoveNext()
       at Microsoft.Windows.Design.Metadata.Xaml.XamlExtensionImplementations.<FindAttachableProperties>d__7.MoveNext()
       at MS.Internal.VirtualModel.VirtualModelPropertyCollection.<GetUncachedProperties>d__0.MoveNext()
       at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       at MS.Internal.VirtualModel.VirtualModelPropertyCollection.GetEnumerator()
       at MS.Internal.Designer.PropertyEditing.Model.Properties.ModelPropertyMerger.<GetFirstProperties>d__0.MoveNext()
       at MS.Internal.Designer.PropertyEditing.Views.PropertyEntryReader.RedraftEntries(IPropertyViewManager viewManager, Selection selection, Boolean attachedOnly, IEventCodeBehindProxy eventCodeBehindProxy, CategoryList categoryList)
       at MS.Internal.Designer.PropertyEditing.PropertyInspector.UpdateCategories(Selection selection, Boolean attachedOnly, IEntryReader entryReader)
       at MS.Internal.Designer.PropertyEditing.PropertyInspector.RefreshPropertyList(Boolean attachedOnly)
       at MS.Internal.Designer.PropertyEditing.PropertyInspector.OnSelectionChangedIdle()
       at MS.Internal.Designer.PropertyEditing.PropertyInspector.OnSelectionChangedIdleForced(Object sender, EventArgs e)
       at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
       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)

    After reloading the designer and clicking again I got the following error:

    System.Reflection.TargetInvocationException
    Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Delegate.DynamicInvokeImpl(Object[] args)
       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)
     
      
    System.TypeLoadException
    Cannot find type Telerik.WinControls.Design.RadItemDesigner in module Telerik.WinControls.dll.
       at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
       at Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError)
       at Microsoft.MetadataReader.MetadataOnlyModule.ResolveTypeRef(ITypeReference typeReference)
       at Microsoft.MetadataReader.MetadataOnlyTypeReference.GetResolvedTypeWorker()
       at Microsoft.MetadataReader.TypeProxy.GetResolvedType()
       at Microsoft.MetadataReader.TypeProxy.GetHashCode()
       at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.GetTypeForReflectableType(Reflectable`1 reflectableType)
       at MS.Internal.Metadata.ClrType.GetTypeMetadata(Type type)
       at MS.Internal.Metadata.ClrType.get_BaseType()
       at MS.Internal.Design.Metadata.Xaml.XamlType.<GetAllAttachableProperties>d__7.MoveNext()
       at MS.Internal.Design.Metadata.Xaml.XamlType.<FindAttachableProperties>d__0.MoveNext()
       at Microsoft.Windows.Design.Metadata.Xaml.XamlExtensionImplementations.<FindAttachableProperties>d__7.MoveNext()
       at MS.Internal.VirtualModel.VirtualModelPropertyCollection.<GetUncachedProperties>d__0.MoveNext()
       at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       at MS.Internal.VirtualModel.VirtualModelPropertyCollection.GetEnumerator()
       at MS.Internal.Designer.PropertyEditing.Model.Properties.ModelPropertyMerger.<GetFirstProperties>d__0.MoveNext()
       at MS.Internal.Designer.PropertyEditing.Views.PropertyEntryReader.RedraftEntries(IPropertyViewManager viewManager, Selection selection, Boolean attachedOnly, IEventCodeBehindProxy eventCodeBehindProxy, CategoryList categoryList)
       at MS.Internal.Designer.PropertyEditing.PropertyInspector.UpdateCategories(Selection selection, Boolean attachedOnly, IEntryReader entryReader)
       at MS.Internal.Designer.PropertyEditing.PropertyInspector.RefreshPropertyList(Boolean attachedOnly)
       at MS.Internal.Designer.PropertyEditing.PropertyInspector.OnSelectionChangedIdle()

    After this error reloading the designer did not help anymore. I had to reload the solution to get the designer up and running again.

  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 13 Oct 2011 Link to this post

    Hello Pieter,

    We were able to observe only once the issue. Once you delete and add again the WinForms assemblies the issue cannot be reproduced again. I can suggest you the following:
    - if you don't use WinForms in your project delete these assemblies
    - if you do use WinForms make sure that you use the only one installed version on your computer. I noticed that you are using quite old WinForms assemblies, so make sure that the project is refering one and the same assemblies (they are not with different versions).

    Hope this information is helpful.

    Best wishes,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top
UI for WPF is Visual Studio 2017 Ready