Smobiler上海石磨_.NET移动开发平台

标题: 设计器报错 :值不能为null,参数名:instance [打印本页]

作者: max5295    时间: 2020-5-13 21:02
标题: 设计器报错 :值不能为null,参数名:instance
安装vs2019后安装smobiler4.6,打开以前的项目,报错,然后卸载,然后安装5.1,仍旧报错,请问如何解决
作者: Lula.Jin    时间: 2020-5-14 13:23
重启vs试试
作者: a648578918    时间: 2020-5-29 10:19
遇到同样的问题
作者: a648578918    时间: 2020-5-29 10:25
Lula.Jin 发表于 2020-5-14 13:23
重启vs试试

值不能为 null。参数名: instance ,是版本的问题吗
此错误的实例(1)  

1.   隐藏调用堆栈

在 System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes)
在 Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component, Boolean rootDesigner)
在 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.PerformLoad(IDesignerSerializationManager serializationManager)
在 Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)  

作者: cyl1984    时间: 2022-2-16 21:34
解决了吗?
我遇到同样问题 ,重启没有啊




欢迎光临 Smobiler上海石磨_.NET移动开发平台 (https://www.smobiler.com/) Powered by Discuz! X3.2