Page 1 of 1

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

Posted: Fri 06 Apr 2018 08:22
by ccy
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?

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

Posted: Fri 06 Apr 2018 13:58
by MaximG
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