Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 22nd, 2003, 06:22 AM
lendy lendy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Czech republic
Posts: 3 lendy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to lendy
Question 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

Reply With Quote
  #2  
Old July 22nd, 2003, 11:21 AM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 274 mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 12 m 34 sec
Reputation Power: 9
What versions of provider sdk and firebird server ?

Reply With Quote
  #3  
Old July 23rd, 2003, 01:06 AM
lendy lendy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Czech republic
Posts: 3 lendy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to lendy
Provider 1.0
Firebird 1.0

Reply With Quote
  #4  
Old July 24th, 2003, 11:38 AM
carlosga carlosga is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 13 carlosga User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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 )

Reply With Quote
  #5  
Old August 24th, 2004, 09:30 PM
RX_coder RX_coder is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 3 RX_coder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 14 sec
Reputation Power: 0
Quote:
Originally Posted by lendy
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

Code:
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

Reply With Quote
  #6  
Old August 25th, 2004, 03:47 AM
lendy lendy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Czech republic
Posts: 3 lendy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to lendy
FB & .NET Ok

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

Reply With Quote
  #7  
Old October 8th, 2004, 12:15 PM
Lion1981 Lion1981 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Ukraine, Lviv
Posts: 3 Lion1981 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 sec
Reputation Power: 0
Send a message via ICQ to Lion1981
I need Firebird .NET COmpact Framework Data Provider to access from Pocket PC to Firebird DB

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Firebird & .NET


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT