Posted on 2006-04-01
Last Modified: 2012-05-05
Can some one please tell me how to get this referencve to work in .net

In my assemblies I have the MySql.Data but when I run the code it says it cannot find it


It is there but for some reason still won't have it. Does an any one have any ideas?

Question by:REA_ANDREW
    LVL 1

    Expert Comment

    1) Right - Click on your project
    2) Select Add reference
    3) From the .NET tab if you cannot see Mysql.Data.Dll then click on browse
    4) Navigate to your mysql installation folder
    5) Select te dll file

    Let me know if you need further help.

    LVL 20

    Author Comment

    I get this error

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

    Source Error:


    Line 15:     protected void Page_Load(object sender, EventArgs e)
    Line 16:     {
    Line 17:         MySql.Data.MySqlClient.MySqlConnection conn;
    Line 18:         string myConnectionString;
    Line 19:
    LVL 1

    Accepted Solution

    Did you add the reference correctly as i mentioned?

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now