views:

508

answers:

2

What references are necessary to have fluent nhibernate work with mysql. I have downloaded the latest version (6.0.3.0) of the mysql connector, but it is still throwing exceptions related to the mysql driver.

Here is the exception:

{"Could not create the driver from NHibernate.Driver.MySqlDataDriver, NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4."}

Thanks.

+1  A: 

In my experience you need to have your MySQL reference set to 'Copy Local' true (i.e. the DLL is copied to your bin folder) to get NHibernate to work with MySQL at all. Have you done that?

chyne
This was the problem. Thanks for the information.
A: 

I have the same problem and I have set the copy local to true. I have put the MySql.Data.dll into my bin/debug folder. I also have copied the connector. But it's still not working. My NHibernate version is 2.0. What is wrong with this?

Thanks,

Henry