Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FirebirdSql.Data.FirebirdClient.dll throws exception with x64 embedded drivers [DNET946] #867

Closed
firebird-automations opened this issue Aug 4, 2020 · 2 comments

Comments

@firebird-automations
Copy link

Submitted by: Asmita (ankulkarni)

We are in process of converting project referencing FirebirdSql.Data.FirebirdClient.dll to Anycpu configuration and updating drivers to x64 version.

It is throwing exceptions

Test Name: AddColumnTest
Test FullName: Agilent.OpenLab.DbAbstraction.Tests.AlterTableTests.AddColumnTest
Test Source: \Tests\AlterTableTests.cs : line 45
Test Outcome: Failed
Test Duration: 0:00:00.162

Result StackTrace:
at FB_965910463_Class.isc_create_database(IntPtr[] statusVector, Int16 dbNameLength, Byte[] dbName, Int32& dbHandle, Int16 parmBufferLength, Byte[] parmBuffer, Int16 dbType)
at FB_965910463_Class.IFbClient.isc_create_database(IntPtr[] statusVector, Int16 dbNameLength, Byte[] dbName, Int32& dbHandle, Int16 parmBufferLength, Byte[] parmBuffer, Int16 dbType)
at FirebirdSql.Data.Client.Native.FesDatabase.CreateDatabase(DatabaseParameterBuffer dpb, String dataSource, Int32 port, String database)
at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.CreateDatabase(DatabaseParameterBuffer dpb)
at FirebirdSql.Data.FirebirdClient.FbConnection.CreateDatabase(String connectionString, Int32 pageSize, Boolean forcedWrites, Boolean overwrite)
at Agilent.OpenLab.DbAbstraction.Firebird.FirebirdDatabaseDeployer.CreateDatabase() in C:\_Projects\OLSS\SharedServices\Server\DbAbstraction\Firebird\FirebirdDatabaseDeployer.cs:line 29
at Agilent.OpenLab.DbAbstraction.Tests.AlterTableTests.SetUp() in C:\_Projects\OLSS\SharedServices\Server\DbAbstraction\Tests\AlterTableTests.cs:line 39
Result Message: System.BadImageFormatException : An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

Check list
Make sure Project configuration is Anycpu ; Done
Make sure Drivers referred are 64 bit : Done
Check Processor architecture of FirebirdSql.Data.FirebirdClient.dll is Anycpu i.e MSIL : Done

but it is not able to understand x64 drivers and failing to load it .

It is referring : Firebird driver version 2.5.4

Does it need x64 version of FirebirdSql.Data.FirebirdClient.dll? What could be wrong ?

@firebird-automations
Copy link
Author

Commented by: @cincuranet

The BadImageFormatException is pretty clear. You have a mismatch between the test executable/adapter/runner and the fbembed.dll/fbclient.dll.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Cannot Reproduce [ 5 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants