TypeInitializationException using LINQPad

TypeInitializationException using LINQPad

Postby mattatplayfab » Fri 05 Sep 2014 19:29

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?
mattatplayfab
 
Posts: 3
Joined: Fri 05 Sep 2014 19:20

Re: TypeInitializationException using LINQPad

Postby MariiaI » Tue 09 Sep 2014 08:16

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.
MariiaI
Devart Team
 
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: TypeInitializationException using LINQPad

Postby mattatplayfab » Tue 09 Sep 2014 16:26

Thanks for investigating, I look forward to your reply!
mattatplayfab
 
Posts: 3
Joined: Fri 05 Sep 2014 19:20

Re: TypeInitializationException using LINQPad

Postby MariiaI » Thu 11 Sep 2014 13:19

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/postgresql/download.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.
MariiaI
Devart Team
 
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: TypeInitializationException using LINQPad

Postby mattatplayfab » Thu 11 Sep 2014 18:15

That works, thanks!
mattatplayfab
 
Posts: 3
Joined: Fri 05 Sep 2014 19:20


Return to dotConnect for PostgreSQL