0

I am struggling to connect to a Firebird database in C# through Visual Studio 2019 I was able to connect to the database through FlameRobin, but I don't really know how to connect through Visual Studio 2019 and C#.

Please show me all the commands I need to enter to connect and to insert data I installed FirebirdSql.Dtaba.FirebirdClient I tried so many codes, but it all failed

FlameRobin Connection

The code I used to connect

buddy
  • 3
  • 3
  • Please share one of your failed attempts, its easier to tell you what went wrong, and share the error message you are receiving. – Rand Random Apr 30 '20 at 09:50
  • This is the error I get when I try to connect: W/ompanyname.scan(13297): type=1400 audit(0.0:108): avc: denied { ioctl } for path="socket:[97506]" dev="sockfs" ino=97506 ioctlcmd=10 scontext=u:r:untrusted_app:s0:c91,c256,c512,c768 tcontext=u:r:untrusted_app:s0:c91,c256,c512,c768 tclass=tcp_socket permissive=0 – buddy Apr 30 '20 at 11:12
  • @RandRandom I also added the code I used to connect. Not sure if I used it properly. – buddy Apr 30 '20 at 11:17
  • Since you tagged your question with android can I assume you are running this code on the android emulator or on an android phone? If thats the case, an obvious error is that your database file on `C:\ProgramData\xxx.fdb` is most likely wrong. Since my android knowledge is basically non existent I can't help you further. – Rand Random Apr 30 '20 at 12:03
  • Yes, you are right. I am running it on android emulator. I am not sure what do you mean by the database file is wrong. I am able to see the database file in that directory. Anyway, thank you for your time. hopefully, someone can help me – buddy Apr 30 '20 at 12:33
  • IMHO - The android emulator won't have access to your local machine file system, I am assuming that your drive `C:\ ` is a local drive on your PC and not on the android system. Also, the `localhost` wouldn't resolve to your PC but to your android system, and I doubt that the firebird server is running on the phone, instead most likely you have firebird installed on your pc, so instead of localhost you would need to use the IP of your PC and make sure that the android emulator has access to your PC. But than again, as I mentioned, I am week with android so I could say bullshit. – Rand Random Apr 30 '20 at 12:39
  • Actually, that helped. I am making progress. Thanks – buddy Apr 30 '20 at 14:42
  • No problem, glad I could help. – Rand Random Apr 30 '20 at 14:44

0 Answers0