Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 设计器无法在visual studio中加载,常规参数[0]违反了类型参数的约束';T';_C#_Visual Studio_Visual Studio 2015_Infragistics_Windows Forms Designer - Fatal编程技术网

C# 设计器无法在visual studio中加载,常规参数[0]违反了类型参数的约束';T';

C# 设计器无法在visual studio中加载,常规参数[0]违反了类型参数的约束';T';,c#,visual-studio,visual-studio-2015,infragistics,windows-forms-designer,C#,Visual Studio,Visual Studio 2015,Infragistics,Windows Forms Designer,我有一个GUI,其中包含几个infragistics元素,当我加载它们时,会出现错误 GenericArguments[0], 'Infragistics.Win.UltraWinTabControl.UltraTab', on 'Infragistics.Win.Design.SubObjectCodeDomSerializer`1[T]' violates the constraint of type parameter 'T'. 使用堆栈跟踪: at System.RuntimeTyp

我有一个GUI,其中包含几个infragistics元素,当我加载它们时,会出现错误

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[] 
这是在VisualStudio中

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

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版本可能是问题的一部分。但是这建议在程序集中卸载它们,但是这似乎假设程序集中有多个Infrastic版本,而只有一个s文件,这表明它已经严重过时

我已经尝试删除bin和obj文件夹。