Helpful Information
 
 
Category: Firebird SQL Development
Firebird & .NET

Hi all,
I am a delphi developer with experiance with ib/firebird.
Is anyone using the .net provider?
I have problems with connection to my firebird database.

When I create connection, it's ok, but when I want Open connection,
application throw an error:

"An unhandled exception of type 'System.TypeLoadException' occurred in firebirdsql.data.firebird.dll
Additional information: Invalid PInvoke metadata format."

My code is so easy and I can't find some errors there.

string ConnectionString = "Database=D:\\DBINI.GDB;User=SYSDBA;Password=masterkey;Dialect=3;Server=localhost";

FbConnection MainConnection = new FbConnection(ConnectionString);
MainConnection.Open(); // here an error occurred
.
.
.


Thanks for your help

Lendy

What versions of provider sdk and firebird server ?

Provider 1.0
Firebird 1.0

Hello:


First of all tell that is better to ask this questions in the Firebird .NET Data porovider developement list.

Which version of the .NET Framekwork are you using and in the case of the .NET Provider what version are you using ( this means for what .NET Framework version )

Hi all,
When I create connection, it's ok, but when I want Open connection,
application throw an error:

"An unhandled exception of type 'System.TypeLoadException' occurred in firebirdsql.data.firebird.dll
Additional information: Invalid PInvoke metadata format."


I got the EXACT same error with VB.NET
Using Firebird .NET Data Provider 1.6.1 and .NET 1.1


Dim myConnString As String = "Database=C:\EMPLOYEE.FDB;User=SYSDBA;Password=masterkey;Dialect=3;Server=localhost"
Dim connection As FbConnection = New FbConnection(myConnString)

connection.Open() ' error

Please help

Thanks

RX_coder

Try FirebirdNETProvider 1.5.2-NET1.1
I have this Provider installed and it's ok. (in C#)
I have it with .NET Framework 1.1.

Lendy

I need Firebird .NET COmpact Framework Data Provider to access from Pocket PC to Firebird DB










privacy (GDPR)