MySQL:无法找到类型或命名空间名称'MySql'(您是否缺少using指令或程序集引用?)

sbo*_*ose 1 mysql asp.net

Line 1:  <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="Healthcare.docInterface.WebForm3" %>
Line 2:  
Line 3:  <%@ Import Namespace="MySql.Data.MySqlClient" %>
Line 4:  <%@ Import Namespace="Healthcare.dbcon" %>
Line 5:  <%@ Import Namespace= "System.Data" %>
Run Code Online (Sandbox Code Playgroud)

在代码隐藏中编写的代码工作正常.

我如何MySql.Data.MySqlClient在.aspx文件中使用?

irf*_*csd 7

MySql.Data.MySqlClient dll必须存在于/ bin /目录中.