Dblinq for .net 4.0

130 views
Skip to first unread message

birko

unread,
Oct 7, 2010, 10:10:50 AM10/7/10
to DbLinq
Hi.
I have a problem with using DbLinq in my application.
A develop a app for .Net 4.0 version so i have compiled the sources in
my visual studio and have worked with them. the app was working fine
on my when i was debuging it and build it to release.
But when i copied the Release on another computer and install
there .net 4.0 client profile. app throws me an error which
look like this.
Problem Event Name: CLR20r3
Problem Description 01: oravatop.net.exe
Description of issue 02: 1.0.0.0
Problem Description 03: 4cadba45
Problem Description 04: DbLinq
Problem Description 05: 0.20.0.0
Problem Description 06: 4cadc29b
Problem Description 07: 484
Problem Description 08: 6b
Problem Description 09: System.ArgumentException
OS Version: 6.1.7600.2.0.0.256.1
Identification locale: 1051
Additional information 1: 0a9e
Additional information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional information 4: 0a9e372d3b4ad19135b953a78882e789

I tried to compile the sources to client profile but probably i am
doinng something wrong. Can somebody help me?

Jonathan Pryor

unread,
Oct 7, 2010, 1:43:19 PM10/7/10
to dbl...@googlegroups.com
On Thu, 2010-10-07 at 07:10 -0700, birko wrote:
> But when i copied the Release on another computer and install
> there .net 4.0 client profile. app throws me an error which
> look like this.
> Problem Event Name: CLR20r3
...
> Problem Description 09: System.ArgumentException

A full stack trace would be useful. I don't know what would be causing
the problem.

- Jon


birko

unread,
Oct 12, 2010, 7:04:01 AM10/12/10
to DbLinq
this is what i recieved in Aplication event viewer log:

Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
Stack:
at
DbLinq.Vendor.Implementation.Vendor.CreateDbConnection(System.String)
at DbLinq.Data.Linq.DataContext..ctor(System.String)
at OravaTop.Net.Data.FisTopSqLite.ReConnect()
at OravaTop.Net.Lib.FisTop.ConnectSQlite()
at OravaTop.Net.Lib.FisTop..ctor()
at OravaTop.Net.Lib.FisTop.Reload()
at OravaTop.Net.Lib.FisTop.get_Instance()
at OravaTop.Net.Forms.LoginForm..ctor()
at OravaTop.Net.Forms.LoginForm.get_Instance()
at OravaTop.Net.Program.Main()


For more information, see Help and Support Center at

Jonathan Pryor

unread,
Oct 12, 2010, 10:03:14 AM10/12/10
to dbl...@googlegroups.com
Can you get more information, such as the actual message?

Looking at Vendor.CraeteDbConnection(string), there's only one place
where an exception is thrown:

if (connType == null)
throw new ArgumentException(string.Format(
"Could not load the specified DbLinqConnectionType `{0}'.",
connTypeVal),
"connectionString");

So the implication is that you're either missing a DbLinqConnectionType
parameter or there's some other error.

One possible error that comes to mind is that, iirc, you mentioned you
were running on .NET 4.0. If DbLinqConnectionType isn't present in the
connection string then the following type is used:

connTypeVal = "System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";

Notice that this is a reference for a 2.0 assembly, not a 4.0 assembly.
It's possible that changing this line to use Version=4.0.0.0 instead of
2.0.0.0 may allow things to work for you.

- Jon

Reply all
Reply to author
Forward
0 new messages