Error: Invalid PInvoke metadata format

G

Gacu

Hi,

An unhandled exception of type 'System.TypeLoadException' occured in
system.dll

Additional information: Invalid PInvoke metadata format

Im getting this error afrer calling myConnection.Open();
Im connecting to Firebird database (im trying in fact)
I don't know whats wrong :( Please Help.

This is piece of code:

string connectionString =
"User=SYSDBA;" +
"Password=masterkey;" +
"Database=test2.fdb;" +
"DataSource=localhost;" +
"Port=3050;" +
"Dialect=3;" +
"Charset=NONE;" +
"Role=;" +
"Connection lifetime=15;" +
"Pooling=true;" +
"Packet Size=8192";


FbConnection myConnection = new FbConnection(connectionString);

myConnection.Open();



Thanx

gacu
 
N

Nicholas Paldino [.NET/C# MVP]

Gacu,

This sounds like a bug with the connection class. Is there more
information in the call stack that you can display that would possibly show
the error?
 
G

Gacu

Hi Nicholas,

You are right. I've reinstalled .net data provider for Firebird. I had
provider for
..net framework 1.1 version
now I have provider for
..net framework 1.0 version

It works now! :) That's strange because I got 1.1 .net framework installed
for sure. Maybe something is wrong with my system.

Thanx.
gacu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top