使用MySql.Data.MySqlClient;不管用 [英] using MySql.Data.MySqlClient; is not working

查看:45
本文介绍了使用MySql.Data.MySqlClient;不管用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用MS SQL之前,但在一个新项目中,我使用mysql,当我运行应用程序时出现此错误

Before I used MS SQL but in a new project I use mysql and when I run our application I get this error

编译错误说明:在执行过程中发生错误 满足该请求所需的资源的汇编.请 查看以下特定的错误详细信息并修改您的源 适当地编码.

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

编译器错误消息:CS0246:类型或名称空间名称'MySql' 找不到(您是否缺少using指令或程序集 参考?)

Compiler Error Message: CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)

源错误:

Line 4:  using System.Text;
Line 5:  using System.Web;
Line 6:  `using MySql.Data.MySqlClient;    this namespace is not working 
Line 7:  using System.Data.SqlTypes;

我该如何解决这个问题?

How can I solve this problem?

推荐答案

要解决此问题,请从

https://www. cryptool.org/trac/CrypTool2/export/2020/trunk/AppReferences/x64/MySql.Data.dll

然后右键单击您的项目名称,单击添加引用,然后选择MySql.Data.dll文件

Then right click on your project name, click on add reference and select MySql.Data.dll file

这篇关于使用MySql.Data.MySqlClient;不管用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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