A full stack trace would be useful. I don't know what would be causing
the problem.
- Jon
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