Page 1 of 1

TypeInitializationException using LINQPad

Posted: Fri 05 Sep 2014 19:29
by mattatplayfab
I'm trying to connect to a Redshift database using LINQPad. I created a connection using an existing data context in an assembly that I created using LinqConnect model classes, and I specified the app.config file containing the connection string.

The connection appears to be added successfully in LINQPad, i.e. it displays the correct list of tables. When I attempt to execute a query, it displays the following error:

TypeInitializationException: The type initializer for 'Devart.Data.PostgreSql.PgSqlConnectionStringBuilder' threw an exception.

Any ideas?

Re: TypeInitializationException using LINQPad

Posted: Tue 09 Sep 2014 08:16
by MariiaI
TypeInitializationException: The type initializer for 'Devart.Data.PostgreSql.PgSqlConnectionStringBuilder' threw an exception.
Thank you for the report on this. We have reproduced this issue. We will investigate it in more details and inform you about the results as soon as possible.

Re: TypeInitializationException using LINQPad

Posted: Tue 09 Sep 2014 16:26
by mattatplayfab
Thanks for investigating, I look forward to your reply!

Re: TypeInitializationException using LINQPad

Posted: Thu 11 Sep 2014 13:19
by MariiaI
The bug related to the "The type initializer for 'Devart.Data.PostgreSql.PgSqlConnectionStringBuilder' threw an exception" error is fixed.
New build of dotConnect for PostgreSQL 7.3.244 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/postgr ... nload.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=3&t=30377.

Re: TypeInitializationException using LINQPad

Posted: Thu 11 Sep 2014 18:15
by mattatplayfab
That works, thanks!