Problems loading DbLinq

49 views
Skip to first unread message

El

unread,
Dec 24, 2010, 6:00:07 PM12/24/10
to DbLinq
Hi,

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

In mono 2.6.7, it is my understanding that System.Data.Linq implements
Dblinq. I downloaded DbLinq-0.20.1.zip. Do I have to install the
DbLinq.dll somewhere? If so, in the GAC?

I checked for the installed files and so far they look the same on
both machine. What am I missing here?

Thanks,
El

Jonathan Pryor

unread,
Dec 24, 2010, 10:23:37 PM12/24/10
to dbl...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages