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

On Tue, 2010-10-12 at 04:04 -0700, birko wrote:
> 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
> 
> On Oct 7, 7:43 pm, Jonathan Pryor <[email protected]> wrote:
> > 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
> 


-- 
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