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 8082709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:12:39+00:00 2026-06-05T17:12:39+00:00

I have generated a DAL layer with Subsonic2.2 for a .NET4.0 application, using c#

  • 0

I have generated a DAL layer with Subsonic2.2 for a .NET4.0 application, using c# and mysql.
Yet when I use a Collection, i have this exception on this line:

AnagraficaCategorieCollection a = new AnagraficaCategorieCollection().Load();

telling me that it cannot load or find assembly MySql.Data, version 5.2.3.0.

My project references a newer version. How can I possibly solve that?

  • 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-05T17:12:40+00:00Added an answer on June 5, 2026 at 5:12 pm

    The solution is to use an assembly redirect, which tells the framework to use a newer version of MySql.Data. To add the redirection, put this in your web/app.config:

    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
          <bindingRedirect oldVersion="5.0.0.0-6.5.3.0" newVersion="6.5.4.0"/>
        </dependentAssembly>
      </assemblyBinding>
    </runtime>
    

    Note that you may need to change the version numbers to match your current assembly.

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

Sidebar

Related Questions

I have generated a collection of images. Some of them are blank as in
I have generated a C# SharePoint Sequential Workflow project using the very handy STSDEV
I have generated using openssl mycert.pem which contents the certificate. And I converted the
I have generated a bunch of png files to use as markers on my
i have developed an iphone application where i have generated a terms and condition
I have a Desktop application that uses Linq To SQL as the DAL. It
I have a ASP.net (C#) project that is using a three layer architecture. I
I've got a nice DAL generated using Subsonic. Is there a way I can
I have a small application which consists of a DAL, BLL and the Application
I have been writing a small web application in C# .NET4.0 to try and

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.