I have an existing .NET 2 application that has been working for a while
using Firebird embedded 1.53 (developing under XP).  I've moved my
development environment to a new box running Vista 64 bit and I'm having
some problems with Firebird.

 

I can use IBExpert to open & query my db as usual (which I didn't expect as
I thought Firebird 1.5 didn't support 64 bit) but when I try to open it in
my application the first FbConnection.Open() call throws a
BadImageFormatException.  I've also tried using embedded versions 1.54 and
2.0 and they all throw the same exception, a BadImageFormatException with
the following message:

 

An attempt was made to load a program with an incorrect format. (Exception
from HRESULT: 0x8007000B)

 

And the following call stack:

 

   at FirebirdSql.Data.Client.Embedded.FbClient.isc_attach_database(Int32[]
statusVector, Int16 dbNameLength, Byte[] dbName, Int32& dbHandle, Int16
parmBufferLength, Byte[] parmBuffer)

   at
FirebirdSql.Data.Client.Embedded.FesDatabase.Attach(DatabaseParameterBuffer
dpb, String dataSource, Int32 port, String database)

   at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()

   at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create()

   at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut()

   at FirebirdSql.Data.FirebirdClient.FbConnection.Open()

   at
SpellGen.DocumentType.Campaign.Internals.CampaignDatabase.get_AllCampaigns()
in
D:\Development\SpellGen\SpellGen.DocumentType.Campaign\Internals\CampaignDat
abase.cs:line 41

 

Can anyone shed any insight on the problem?  Taken literally it would appear
that windows/.net thinks fbembed.dll (or some other binary) isn't actually a
dll/exe.  Is this being caused by 64 bit?  At first that was what I thought,
but then I would have expected it to work with Firebird 2.0 which gave the
same error (but 2.0 as 1.53 opens the db in IBExpert fine).

 

--

Mark Sironi

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to