The type initializer for 'FirebirdSQL.Data.Client.Native.FbClientFactory' threw an exception

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
ccy
Posts: 10
Joined: Tue 04 Oct 2005 03:39

The type initializer for 'FirebirdSQL.Data.Client.Native.FbClientFactory' threw an exception

Post by ccy » Fri 06 Apr 2018 08:22

I am testing EntityDAC. When using Entity Developer to try model from a firebird 3.0 database with these steps:

1. Select provider ".NET Framework Data Provider for Firebird"
2. Server Type: Embedded Server
3. Database: c:\Program Files (x86)\Firebird\Firebird_3_0\examples\empbuild\Employee.fdb
4. Press "Test Connection" and it prompt "The type initializer for 'FirebirdSQL.Data.Client.Native.FbClientFactory' threw an exception"

Any ideas?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: The type initializer for 'FirebirdSQL.Data.Client.Native.FbClientFactory' threw an exception

Post by MaximG » Fri 06 Apr 2018 13:58

Perhaps the described issue is related to the fact that before installing EntityDAC the ".NET Framework Data Provider for Firebird" has already been installed in your environment. Try the following actions:

- open the file [EntityDAC install folder]\EntityDAC\EntityDeveloper\EntityDeveloper.exe.config in the text editor
- find and delete the following line in it:

Code: Select all

<add name="FirebirdClient Data Provider" invariant="FirebirdSql.Data.FirebirdClient" description=".NET Framework Data Provider for Firebird" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient, Version=5.12.1.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c"/>
- save EntityDeveloper.exe.config

Try using EntityDeveloper after making changes and let us know about the results

Post Reply