数据提供商mysql.data.mysqlclient'在Visual Studio 2019 ASP.NET上的系统配置中找不到

发布于 2025-02-05 16:51:21 字数 449 浏览 2 评论 0原文

我刚刚安装了Visual Studio 2019。

我还为Visual Studio 2019中的Visual Studio 1.2.10安装了MySQL Connector 8.0.29和MySQL。

我创建了一个与MySQL的新连接,并且该连接的测试成功了。

当我尝试单击“ Next”时,它会显示一个错误:

“数据提供商“ mysqlclient”在系统配置中找不到。找不到所请求的.NET框架数据提供商。它可能无法安装。”

在ASP.NET?上解决此问题的任何方法

我已经修改了Web.config,但仍无法解决问题。 谢谢。

请检查下面的错误。 “创建新连接后,然后单击“错误”

I just installed Visual Studio 2019.

I have also installed MySQL Connector 8.0.29 and MySQL for Visual Studio 1.2.10 in Visual Studio 2019.

I created a new connection to MySQL and the testing of the connection succeed.

When I try to click on "Next" it shows an error:

"The data provider "MySqlClient" could not be found in the system configuration. Unable to find the requested .NET Framework Data Provider. It may not be installed."

Any method to fix this problem on ASP.net?

I have modified the web.config but still cannot solve the problem.
Thanks.

Please check the below picture of the error.
After create new connection then click next to the error

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

鲜血染红嫁衣 2025-02-12 16:51:21

这里同样的问题!这是我的解决方法。请仔细阅读版本号。关闭与2019年并运行MySQL安装程序。仅删除Visual Studio 1.2.10和MySQL连接器8.0.29的MySQL。然后再次打开VS2019并关闭它。然后再次打开MySQL安装程序,然后安装MySQL,用于Visual Studio 1.2.10和MySQL Connector 8.0.28 。不是8.0.29。然后打开VS2019。 MySQL更新配置工具将再次弹出,并等待完成。然后,您会看到错误消失了!
我认为这是由连接器版本8.0.29引起的。浪费了很多小时。享受 !

Same problem here ! Here is my workaround. Please read version number carefully . Close vs 2019 and Run mysql installer. Remove only mysql for visual studio 1.2.10 and mysql connector 8.0.29. Then Open VS2019 again and close it. Then open mysql installer again and install mysql for visual studio 1.2.10 and mysql connector 8.0.28. NOT 8.0.29. Then open VS2019. MySQL Update Configuration Tool will be Popup Again and wait for finished. Then you will see error gone !
I think it was caused by connector version 8.0.29. Waste of many hours. Enjoy !

御弟哥哥 2025-02-12 16:51:21

可能是您需要使用(.net-framework)-files而不是(.net)-files,您还需要通过project>添加参考参考连接器
在这里,您需要使用dotnet连接器找到mySQL文件夹,然后有一个mysql.data.dll文件,需要将其引用到

It can be that you need to use (.Net-Framework)-files instead of (.Net)-files also you need to refer to the connector via project>add reference
Here you need to find the MySQL folder with the dotnet connector then there is a MySql.Data.dll file which need to be referred to

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文