值不能为空。参数名称:实例

时间:2018-08-05 11:36:55

标签: c# visual-studio

值不能为null。参数名称:instance

此错误的示例:

  

位置:System.ComponentModel.TypeDescriptor.AddAttributes(对象实例,Attribute []属性)

  konum:Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent组件,布尔值rootDesigner)

  位置:System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent组件,字符串名称,IContainer containerToAddTo)

  konum:System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent组件,字符串名称)

  位置:System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(类型componentType,字符串名称)

  位置:System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(类型,ICollection参数,字符串名称,布尔值addToContainer)

  位置:System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(类型,ICollection参数,字符串名称,布尔值addToContainer)

  位置:System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager管理器,CodeTypeDeclaration声明)

  位置:System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager管理器)

  位置:Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)

  位置:Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

由于此错误,设计人员无法加载。

即使设计者未安装,程序仍在运行。

我该怎么办?

0 个答案:

没有答案