错误 XSD desigener Visual Studio 2017

如果我正在尝试打开该文件,我会收到以下错误 .xsd 或在项目中创建一个新的 Visual Studio 2017 its a .net 3.5 在我重新安装之前工作得很好 windows 并更新它 visual studio 2017 pro.

它似乎具体到 .net 3.5, 自从我打开另一个项目以来 4.0, 和他的 .xsd 打开 designer fine.

在加载设计者之前防止可能的数据丢失,
您需要消除以下错误:

价值不能 null.
参数名称:实例


Instances of this error /1/


隐藏呼叫的挑战 System.ComponentModel.TypeDescriptor.AddAttributes/对象的实例,
属性 Attribute[]/ 在
Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner/
成分 IComponent, 逻辑价值 rootDesigner/ at
System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess/
成分 IComponent, 字符串名称 IContainer containerToAddTo/ at
System.ComponentModel.Design.DesignerHost.PerformAdd/
成分 IComponent, 字符串名称/ at
System.ComponentModel.Design.DesignerHost.Add/成分 IComponent,
字符串名称/ at System.ComponentModel.Container.Add/
成分 IComponent/ at
Microsoft.VSDesigner.DataSource.Designer.DataSourceDesignerLoader.HandleLoad/IDesignerSerializationManager
serializationManager/ 在
Microsoft.VSDesigner.DesignerFramework.BaseDesignerLoader.PerformLoad/IDesignerSerializationManager
serializationManager/ 在
Microsoft.VSDesigner.DesignerFramework.BaseDesignerLoader.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted/类型 int32
fReload/

https://i.stack.imgur.com/iuTm5.jpg
已邀请:

君笑尘

赞同来自:

我看着你描述的相同症状 , 和,

, 还发现了

改变目标结构 4.6

/穿过

Website→Start Options→Build

对于项目 ASP.NET/ 适用于可能的项目。

我在开发人员社区网站网站上找到了两个行为的两个开放问题 Visual Studio:

https://developercommunity.vis ... .html
https://developercommunity.vis ... .html
没有人有解决方案 /除了旁路路径 Target Framework 4.6/, 超过官方反馈 6 几个月。

窦买办

赞同来自:

让!
安装项目的目标结构: 4.6
/右键单击框架 ProjectName/Property Pages/Build/Target--->4.6/
我尝试,它有效。

小姐请别说爱

赞同来自:

我有同样的问题。

我的项目旨在框架 4.6.1.

为了解决这个问题,我改变了目标结构 4.7.2.

之后,我能够打开所有数据集。

董宝中

赞同来自:

这篇文章很旧,但问题仍然存在 2019 年。 因此,我发布了我的固执:

似乎问题出现了由于在应用程序之后的事实 2017 当年 /MVC 和 Webform/ 文件 DataSet 不能放在目录中 App_Code.

您可以检查并将文件移动到另一个文件夹,并且您将看到设计人员可以在没有任何问题的情况下打开它们。

唯一的问题是通过对旧项目的协议,代码文件必须进入 App_Code, 否则,将出现编译错误。

小姐请别说爱

赞同来自:

这可能是由于功能。 "security", 在您创建时发生 XSD 旧版 Visual Studio 并有凭证 SQL 在连接字符串中。

要回复问题请先登录注册