Поцепил. В момент открытия формы ловит такое:
| Цитата | Первый этап обработки исключения типа "System.TypeLoadException" в Microsoft.VisualStudio.Shell.Design.dll Первый этап обработки исключения типа "System.TypeLoadException" в Microsoft.VisualStudio.Shell.Design.dll Первый этап обработки исключения типа "System.TypeLoadException" в System.Design.dll Первый этап обработки исключения типа "System.TypeLoadException" в System.Design.dll Первый этап обработки исключения типа "System.InvalidOperationException" в System.Design.dll |
Приложу ещё стек вызовов, который можно посмотреть, счелкнув по ссылке из первой картинки:
| Цитата | в Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) в Microsoft.MetadataReader.MetadataOnlyAssembly.GetType(String name, Boolean throwOnError) в Microsoft.MetadataReader.MetadataOnlyModule.ResolveTypeRef(ITypeReference typeReference) в Microsoft.MetadataReader.MetadataOnlyTypeReference.GetResolvedTypeWorker() в Microsoft.MetadataReader.TypeProxy.GetResolvedType() в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.GetRuntimeType(Type type) в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.EnsureRuntimeType(Type type) в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.GetCustomAttributes(ICustomAttributesDataProvider member, Type filter, CustomAttributesCache cache) в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.GetCustomAttributes(Type type, Type filter, Boolean inherit, CustomAttributesCache cache) в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkType.GetCustomAttributes(Type filter, Boolean inherit) в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkAttributeCollection.GetAttributes(Type type, Type filter) в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkAttributeCollection.GetAttributes(MemberInfo member, Type filter) в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkAttributeCollection.get_Item(Type attributeType) в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkAttributeCollection.get_Item(Type attributeType) в System.ComponentModel.MemberDescriptor.get_DisplayName() в Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkPropertyDescriptor.get_DisplayName() в System.ComponentModel.MemberDescriptor..ctor(MemberDescriptor oldMemberDescriptor, Attribute[] newAttributes) в System.ComponentModel.ReflectPropertyDescriptor..ctor(Type componentClass, PropertyDescriptor oldReflectPropertyDescriptor, Attribute[] attributes) в System.ComponentModel.TypeDescriptor.CreateProperty(Type componentType, PropertyDescriptor oldPropertyDescriptor, Attribute[] attributes) в System.Windows.Forms.Design.DocumentDesigner.PreFilterProperties(IDictionary properties) в System.Windows.Forms.Design.FormDocumentDesigner.PreFilterProperties(IDictionary properties) в System.ComponentModel.Design.ComponentDesigner.System.ComponentModel.Design.IDesignerFilter.PreFilterProperties(IDictionary properties) в System.ComponentModel.Design.TypeDescriptorFilterService.System.ComponentModel.Design.ITypeDescriptorFilterService.FilterProperties(IComponent component, IDictionary properties) в System.ComponentModel.TypeDescriptor.PipelineFilter(Int32 pipelineType, ICollection members, Object instance, IDictionary cache) в System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes) в System.ComponentModel.Design.ComponentDesigner.InitializeInheritedProperties(Boolean rootComponent) в System.ComponentModel.Design.ComponentDesigner.Initialize(IComponent component) в System.Windows.Forms.Design.ControlDesigner.Initialize(IComponent component) в System.Windows.Forms.Design.ParentControlDesigner.Initialize(IComponent component) в System.Windows.Forms.Design.DocumentDesigner.Initialize(IComponent component) в System.Windows.Forms.Design.FormDocumentDesigner.Initialize(IComponent component) в System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo) в System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name) в System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name) в System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer) в System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer) в System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) в System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) в Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) в Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload) |
|