This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I just downloaded latest Lightspeed 5 (Released: 7th March 2013, LightSpeedExpress.msi) and mysql-connector-net-6.6.5.msi for my database. I managed to get modelling round-trips to database and back working just fine. Using VS 2010. But when I start my WinForms application Lightspeed refused to load MySQL connector because it is never/different than the designer (modeller) had used. Lightspeed designer uses MySql.Data, Version=6.3.6.0. My application uses never MySql.Data, Version=6.6.5.0. After a bit googling around I understood the problem and how to fix it: change my reference to older MySql.Data that is distributed with Lightspeed. Not very elegant, I think. But it works. But the must be better solution to fix this? At least the loader should allow never assemblies to be loaded. I'm not a professional .NET programmer (previously used Visual Studio 6 for C++ a "few" years ago) so what's going under the hood is unfamiliar to me. More familiar with Java classloader hell :) Call stack is:
|
|
|
Yes, you can use a binding redirect to cater for this. This is a framework feature which allows you to indicate that any requests for a specific assembly (identified by version/public key token etc) should be serviced by another version of that assembly. So you will want to include something like this in your configuration to cater for the version difference:
Check that the publicKeyToken etc are correct, I am just using the information based on your exception info above. Keep in mind if there are any actual interface differences between those versions you may end up getting exceptions due to a mismatch in what we expect so watch out for that, but usually most providers dont break things outside of major versions so we dont usually see any issues like this :)
|
|