找不到类型或命名空间名称“MySql” [英] The type or namespace name 'MySql' could not be found

查看:1247
本文介绍了找不到类型或命名空间名称“MySql”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我正在编写一个网络应用程序,我使用mysql.data.dll连接到数据库

但是当我在我的系统上本地尝试此站点时,它正确运行。但我无法在我的服务器上运行它。



我用Google搜索了错误

我尝试了所有可能的解决方案。但是没有结果



我的dll是在bin文件夹中而且我有同样的感觉



名称空间声明.....



Hi All

I am writing a web app in which I am using mysql.data.dll to connect to database
but when i tried this site locally on my system it is running correctly. but I am unable to run it on my server.

I googled the error
and I tried all possible solution. but without result

my dll is in bin folder and I have refrence to the same

name space declaration.....

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MySql.Data.MySqlClient;
using MySql.Data.Types;
using System.Text;










//MySqlDataReader myData = default(MySqlDataReader);
Line 17:         //MySql.Data.MySqlClient.MySqlConnection con = new MySqlConnection("Server=localhost;Database=DCC;Uid=root;Pwd=********");
Line 18:         MySql.Data.MySqlClient.MySqlConnection con = new MySqlConnection("******************************





请帮帮我

我无法找出我的错误



提前致谢

Santosh Sharma



Please help me
I am unable to find out my mistakes

Thanks in advance
Santosh Sharma

推荐答案

请检查您的参考文件夹中是否存在dll解决方案(在工具中)不在Windows资源管理器中。
Kindly check whether the dll exists in your reference folder of your solution(in tool)not in windows explorer.


这篇关于找不到类型或命名空间名称“MySql”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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