Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9011149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:39:11+00:00 2026-06-16T02:39:11+00:00

I Created a DataAccess layer to connect any app with a mysql Database using

  • 0

I Created a DataAccess layer to connect any app with a mysql Database using Enterprise Library Data 5 for mysql, i used the dlls:

-EntLibContrib.Data.MySql.dll.enter code here
-Microsoft.Practices.EnterpriseLibrary.Common.dll.
-Microsoft.Practices.EnterpriseLibrary.Data.dll.

The version of each dll is 5.505.0.

i installed the full version of mysql server 5.5 with all the futures as developer machine.
In my data access layer i had a method to call a stored procedure:

    public DataSet ExecuteDataSet(string sp_name, object[] parameters)
    {
        try
        {
            Database BD = new MySqlDatabase(_strCon);

            DbCommand cmd = BD.GetStoredProcCommand(sp_name, parameters);

            using (DataSet ds = BD.ExecuteDataSet(cmd))
                return ds;
        }
        catch (Exception e)
        {
            throw new Exception(e.Message);
        }
    }

I get an error in this line:

            Database BD = new MySqlDatabase(_strCon);

in my app config i have the connection string:

And the exception (FileNotFoundException) says:

Could not load file or assembly ‘MySql.Data, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d’ or one of its dependencies. The system cannot find the file specified.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:39:13+00:00Added an answer on June 16, 2026 at 2:39 am

    Assemply reference missing(MYSQL.data dll missing)

    We have faced similar issues earlier..Checks to be done :

    • You should check in web.config the version you have given for DLL
    • MYsql.data dll version should match the version given in the DLL

    You need to add reference(Dll) to the project if you havent done already.

    Also you can check this Could not load file or assembly 'MySql.Data, Version=6.2.2.0

    Check these and rebuild again.

    Thanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a simple Caching Data Access Layer that has caching using the Enterprise
I have created a Data Access Layer using .NET. Everywhere that I update a
I have created a data access layer in my web app which uses ObjectDataSource
Good day, I have created an object that will manage data access. My app
I'm using ActionScript3 to develop a Data Access Layer for an application another developer
We are using Nhibernate as our data access layer. We have a table of
Here's the architecture of my app: I have a data access layer in a
There's this web app, which relies on a sort of data access library (simple
I have created Enum class of LeaveReason in data access layer having values sick
I'm using AutoMapper in a generated Data Access Layer. That works fine. It was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.