google-code-export / dblinq2007

Automatically exported from code.google.com/p/dblinq2007
Other
0 stars 0 forks source link

Assembly is built by a runtime newer than currently loaded #321

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloaded MySql connector from Mysql.com
2. Downloaded Most recent DbLinq-0.20.1
3. Moved Mysql.Data.dll to DbLinq-0.20.1 folder

Ran command DbMetal.exe -provider=MySql -database:test -server:localhost 
-user:root -password: -namespace:test -code:test.cs -sprocs

Error DbMeta: Could not load file or assembly 'MySql.Data' or one of its 
dependencies.  This assembly is built by a runtime newer than the currently 
loaded runtime and cannot be loaded.

Im new to this and tried to follow the Wiki, but did not help.  When I changed 
the config for MySQL to <provider name="MySQL" 
dbLinqSchemaLoader="DbLinq.MySql.MySqlSchemaLoader, DbLinq.MySql" 
databaseConnection="MySql.Data.MySqlClient.MySqlConnection, 
MySql.Data.MySqlClient, Version=6.3.6.0, Culture=neutral, 
PublicKeyToken=C5687FC88969C44D" /> I got another error: That said could not 
load databaseConnectionType

What is the expected output? What do you see instead?
I expected the dbml file to be built

What version of the product are you using? On what operating system?
0.20.1 on Windows 7

Original issue reported on code.google.com by ke...@santiamtech.com on 15 Sep 2011 at 7:56

GoogleCodeExporter commented 9 years ago
Hi, I am new to C#.

I am also facing this issue after i did the code changes to resolve another 
error as mentioned on this link:
http://code.google.com/p/dblinq2007/issues/detail?id=238

Any updates on the status of the bug?

Thanks & Regards,
Yogi P

Original comment by worldofy...@gmail.com on 10 Apr 2012 at 5:37

GoogleCodeExporter commented 9 years ago
It's been a year and a half. I've looked all over the web for anyone having 
this problem. This was the only place. Did you ever get a solution?

Original comment by arglebar...@gmail.com on 4 Mar 2013 at 10:45

GoogleCodeExporter commented 9 years ago
What's cause the problem is that your mysql version is newer than the version 
dbmetal'used.
The solutions is just simple:
    download a lower version of mysql ,copy and overwrite the version you used before,try it! 

Original comment by Lu.dao...@gmail.com on 12 May 2013 at 4:23