Visual Studio 2019数据集设计器错误:值不能为空。参数名称:实例 [英] Visual Studio 2019 Dataset Designer Error: Value cannot be null. Parameter name:instance
问题描述
我在VS 2109中打开了一个现有项目。 当试图打开任何数据集时,我收到以下错误。
I have opened an existing project in VS 2109. When trying to open any data set I get the following error.
值不能为空。参数名称:实例
Value cannot be null. Parameter name:instance
调用堆栈:
在System.ComponentModel.TypeDescriptor.AddAttributes(对象实例,属性[]属性)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component,Boolean rootDesigner)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component,String name,IContainer containerToAddTo)< System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent组件,String name)的
在System.ComponentModel.Design.DesignerHost.Add(IComponent组件,String name)的
<在System.ComponentModel.Container.Add(IComponent组件)上的
在Microsoft.VSDesigner.DataSource.Designer.DataSourceDesignerLoader.HandleLoad(IDesignerSerializationManager serializationManager)的
at Microsoft.VSDesigner.DesignerFramework.BaseDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VSDesigner.Desig nerFramework.BaseDesignerLoader.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component, Boolean rootDesigner)
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.Add(IComponent component, String name)
at System.ComponentModel.Container.Add(IComponent component)
at Microsoft.VSDesigner.DataSource.Designer.DataSourceDesignerLoader.HandleLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VSDesigner.DesignerFramework.BaseDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VSDesigner.DesignerFramework.BaseDesignerLoader.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
我尝试更改目标框架。 没有帮助。
I have tried changing the target Framework. Did not help.
有什么建议吗?
推荐答案
可能有初步修复。
May have an initial fix.
我的项目是针对Framework 4.6.1。  ;我将目标框架更改为4.7.2。 然后我就可以打开所有数据集。
My project was targeted to Framework 4.6.1. I changed the target Framework to 4.7.2. I was then able to open all datasets.
我尝试了其他几个版本(4.5,4.6.2,4.7.1,没有其他框架版本可以使用。
I tried several other versions (4.5, 4.6.2, 4.7.1, etc. ), no other Framework version worked.
这篇关于Visual Studio 2019数据集设计器错误:值不能为空。参数名称:实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!