Designer无法在visual studio中加载,GenericArguments [0]违反了类型参数' T'

时间:2016-03-21 11:56:23

标签: c# visual-studio visual-studio-2015 infragistics windows-forms-designer

我有一个包含几个infragistics元素的GUI,当我加载它们时会给我错误

GenericArguments[0], 'Infragistics.Win.UltraWinTabControl.UltraTab', on 'Infragistics.Win.Design.SubObjectCodeDomSerializer`1[T]' violates the constraint of type parameter 'T'. 

使用堆栈跟踪:

at System.RuntimeTypeHandle.Instantiate(RuntimeTypeHandle handle, IntPtr* pInst, Int32 numGenericArgs, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.Instantiate(Type[] inst)
at System.RuntimeType.MakeGenericType(Type[] 

这是在视觉工作室。

加载设计器时同一项目中的其他错误包括:

Object reference not set to an instance of an object. 

at Infragistics.Win.Misc.Design.UltraPanelDesigner.VerifyClientAreaDesigner()
at Infragistics.Win.Misc.Design.UltraPanelDesigner.Initialize(IComponent component)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements) 

没有其他设计师表现出任何明智的事情,他们要么抛出上述错误之一,要么向我展示小空设计师的画面。

我已经尝试删除bin / obj并构建一个干净的版本但是没有,在互联网上的其他地方我发现可能是冲突的infragistis版本可能是问题的一部分。但是这建议在程序集中卸载它们,但是这似乎假设程序集中有多个infragistic版本,而那里只有一个单个文件,这表明它已经过时了。

0 个答案:

没有答案