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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:35:16+00:00 2026-05-14T14:35:16+00:00

I am trying to use NHiberanate with NDbUnit but I cannot as NDbUnit tried

  • 0

I am trying to use NHiberanate with NDbUnit but I cannot as NDbUnit tried to load MySql.Data version 1.0.10.1 and NHibernate tries to load version 6.2.2.0 and I can only reference one of them.

Here is the error I get when i try to run NDbUnit

Set Up
System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=1.0.10.1, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at NDbUnit.Core.MySqlClient.MySqlDbCommandBuilder.GetConnection(String connectionString)
   at NDbUnit.Core.DbCommandBuilder..ctor(String connectionString)
   at NDbUnit.Core.MySqlClient.MySqlDbCommandBuilder..ctor(String connectionString)
   at NDbUnit.Core.MySqlClient.MySqlDbUnitTest.CreateDbCommandBuilder(String connectionString)
   at NDbUnit.Core.NDbUnitTest.GetDbCommandBuilder()
   at NDbUnit.Core.NDbUnitTest.ReadXmlSchema(Stream xmlSchema)
   at NDbUnit.Core.NDbUnitTest.ReadXmlSchema(String xmlSchemaFile)
   at Proteus.Utility.UnitTest.DatabaseUnitTestBase.SaveDatabase(String connectionString, String schemaFilePathName, String datasetFilePathName, DatabaseClientType clientType)
   at TGS.UserAccountControlTest.UserAccountManagerTest._TestFixtureSetup() in C:\Documents and Settings\Michal\My Documents\Visual Studio 2008\Projects\TGS\TGS.UserAccountControlTest\UserAccountManagerTest.cs:line 69

Does anyone have any ideas?

  • 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-05-14T14:35:17+00:00Added an answer on May 14, 2026 at 2:35 pm

    If the assembly binding redirect feels either ‘hacky’ (its not at all) or ‘inconveniently brittle’ (it often is), you can also simply recompile NDbUnit against your ‘desired’ MySql.Data assembly (since NDbUnit is open source) by getting the source from http://ndbunit.googlecode.com

    To my knowledge (as the primary committer for the NDbUnit project) there are NO breaking changes in the MySql.Data betw. v1x and v6x. The intent of the MySql.Data assembly is merely to provide MySql-specific implementations of the interface ‘family’ that makes up the ADO.NET stack (IDbConnection, IDBCommand, etc.) and so BY DEFINITION there cannot be breaking changes in the MySql.Data assembly from v1 to v6 (since MS hasn’t really TOUCHED these interfaces since .NET 2.0 was released).

    The ONLY difference between earlier MySql.Data and later MySql.Data implementations of these interfaces is the verison of MySql that they are intended to support so while the ‘database-facing’ side of this assembly changes over time, the ‘code-facing’ side of the classes contained in this assembly sort of BY DEFINITION cannot have changed from one ver to the next.

    Best of luck~!

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

Sidebar

Related Questions

.. but not k.i.s.s.i.n.g I am trying to use NInject with NHibernate. Through NuGet
I'm trying to use NHibernate filters but I'm obtaining a really weird SQL translation
i'm trying to upgrade an old CMS to use NHibernate and can't deter from
I'm trying to use NHibernate for data access, and I have 2 simple entities
I'm trying to use NHibernate with an existing database. In the data-model there is
I'm currently trying to use NHibernate.Search, but i need to get score for each
I am trying to use Nhibernate with Oracle using Microsoft's System.Data.OracleClient Nhibernate Configuration (Is
I'm trying to port a large graph of .NET entities to use NHibernate, but
I have a console command line app that use NHibernate . I am trying
I've been trying to use #harp architecture and Fluent-NHibernate. I am trying to sublass

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.