On Dec 24, 2010, at 6:00 PM, El wrote:
> I have written a mono app in Ubuntu 10.04 using Linq-2-SQ. The
> MySql.Data.dll provider is installed on the GAC and I generated the
> dbcontext using sqmetal.  On one machine, I am able to run the
> application without any problem.  On another machine with the same set
> up, I get the following error:
> 
> Could not load the specified DBLinqConnectionType
> 'MySql.Data.MySqlClient.MySqlConnection, MySql.Data, Version=6.3.4.0,
> Culture=neutral, PublickeyToken=c5687fc88969c44d'.
> Parameter name: connectionString

I would imagine that on your other machine MySql.Data is NOT installed into the 
GAC.  You should double-check this.

Alternatively, you have MySql.Data.dll installed, but it's a different version. 
 Again, you should double-check this.

> In mono 2.6.7, it is my understanding that System.Data.Linq implements
> Dblinq.

System.Data.Linq is implemented in terms of the DbLinq source.  DbLinq.dll will 
NOT help you; you'd need to use a different System.Data.Linq.dll (if the error 
were truly in that assembly), OR you'd have to rebuild your app against 
DbLinq.dll instead of using System.Data.Linq.dll.  Migrating between the two 
should not be terribly difficult, and should mostly involve changing namespace 
references.  (Using DbMetal.exe instead of sqlmetal will also be helpful, as 
sqlmetal won't generate DbLinq references.)

 - Jon

-- 
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en.

Reply via email to