MySQL for Visual Studio/Visual Studio 2017 数据源向导的问题.你调用的对象是空的 [英] Issue with MySQL for Visual Studio / Visual Studio 2017 Datasource Wizard. Object reference not set to an instance of an object

查看:24
本文介绍了MySQL for Visual Studio/Visual Studio 2017 数据源向导的问题.你调用的对象是空的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 10 专业版
Visual Studio 2017 专业版 - 15.5.6
适用于 Visual Studio 的 MySQL - 1.2.7
MySQL 连接器/NET - 6.10.6.0

Windows 10 Pro
Visual Studio 2017 Pro - 15.5.6
MySQL for Visual Studio - 1.2.7
MySQL Connector/NET - 6.10.6.0

我在使用 MySQL for Visual Studio 时遇到了问题.

I have encountered an issue with MySQL for Visual Studio.

当打开配置数据源"对话框,并添加查询时,我可以很好地查询数据.

When opening the 'Configuring a Data Source' dialog box, and adding a query, I can query the data fine.

在最后一个屏幕上运行测试查询时,它失败并出现以下错误:

When running the Test Query on the final screen, it fails with the following error:

在没有测试查询的情况下完成配置,随后运行调试 - 抛出对象引用异常,如下所示:

When finishing the configuration without testing the query, and subsequently running the debug - an Object Reference exception is thrown as shown below:

我已经在以前有效的其他解决方案上对此进行了测试,但我遇到了同样的问题.

I have tested this on other solutions that previously worked, but I am getting the same issue.

各位有什么想法吗?

推荐答案

这也发生在 VS2015 中,在 VS 1.2.4 和 Connector/NET 6.9.8 上使用 MYSQL 上的任何东西.当 VS2017 首次发布时,它与 MYSQL 一起工作,但在对 MYSQL 组件进行任何更改后中断,例如升级到最新的 GA 版本.我不记得工作 VS2017 的原始配置.我已经为 VS 和连接器尝试了所有 MYSQL 组合,但没有任何效果.最终我回到了 2015 年,因为 1.2.4 不支持 2017 年.(在 Windows 10 家庭版和专业版上都试过)我想我的答案是降级到 VS2015,这并不是真正的修复.

This also occurs in VS2015 using anything over MYSQL for VS 1.2.4 and Connector/NET 6.9.8. When VS2017 was first released it worked with MYSQL but it breaks after making any changes to the MYSQL components, e.g upgrading to the latest GA release. I cannot remember the original configuration for the working VS2017. I have tried all combinations of MYSQL for VS and connectors but nothing has worked. Eventually I went back to 2015 because 1.2.4 does not support 2017. (Tried on both Windows 10 Home and Professional) I suppose my answer is downgrade to VS2015, which is not really a fix.

这篇关于MySQL for Visual Studio/Visual Studio 2017 数据源向导的问题.你调用的对象是空的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆