Visual Studio 2010中的生成试图连接到数据库MySQL的ADO.NET驱动程序时,从数据库模型给出的错误信息,如何解决? [英] Visual Studio 2010's generate model from database gives error message when trying to connect to DB with MySQL ADO.NET drivers, how to fix?

查看:275
本文介绍了Visual Studio 2010中的生成试图连接到数据库MySQL的ADO.NET驱动程序时,从数据库模型给出的错误信息,如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的生成使用官方的连接器/网6.4.3 ADO.NET的MySQL驱动我的MySQL数据库的ADO.NET实体模型。然而,当我输入我的DB-信息,并点击下一步(测试连接报告连接成功),我从Visual Studio中出现以下错误信息:

I am trying to generate my ADO.NET entity model from my MySQL database using the official Connector/Net 6.4.3 ADO.NET drivers from MySQL. However, after I type in my DB-info, and click next (Test Connection reports successful connection), I get the following error message from Visual Studio:

在连接到数据库时发生错误。该数据库可能不可用。发生类型的异常'System.Data.ProviderIncompatibleException。该错误信息是:提供程序未返回ProviderManifestToken字符串

An error occurred while connecting to the database. The database might be unavailable. An exception of type 'System.Data.ProviderIncompatibleException' occurred. The error message is: 'The provider did not return a ProviderManifestToken string'.

抓内部异常是类型'System.FormatException'的,这个错误信息:输入字符串的不正确的格式。

The inner exception caught was of type 'System.FormatException', with this error message: 'Input string was not in a correct format.'.

任何人都知道如何解决这个问题?

Anyone know how to fix this?

推荐答案

我想它了。没有与ADO.NET连接器,使本地化的Windows版本报告的错误消息的错误。解决它的办法是改变区域设置(在Windows控制面板),以美国和英语(美国)。然后,我可以从更新的数据库模型没有错误。

I figured it out. There is a bug with the ADO.NET connector that makes localized Windows versions report that error message. The way to fix it is to change region settings (in windows control panel) to US and English (United States). I could then update model from database without errors.

这篇关于Visual Studio 2010中的生成试图连接到数据库MySQL的ADO.NET驱动程序时,从数据库模型给出的错误信息,如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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