Hi all.

I m new to C# and all this .NET stuff. But i m trying to at least learn and start developing with C# and firebird, firebird 1.7 is working fine on Visual Studio, but i tried to use mono and got not luck.

I tried mono with sharpdevelop, it installs and try to compile.. a simple "hello world" compiles fine, but when i try to import a visual studio project or just connect with the firebird database it doesnt compile.

When i try to connect i get this error with mono:

Exception System.IO.FileLoadException was thrown in debugee:
Strong name validation failed for assembly 'FirebirdSql.Data.Firebird'.

This is my code:

using System;
using System.Data;
using FirebirdSql.Data.Firebird;
 
public class Test {
    public static void Main(string[] args) {
        FbConnection myConnection1 = new FbConnection("User=SYSDBA;" +
                    "Password=masterkey;" +
                    "Database=/home/trab/SiadPHP/testes/siad.gdb;" +
                    "DataSource=192.168.15.101 ;" +
                    "Port=3050;" +
                    "Dialect=3;" +
                    "Charset=ISO8859_1;");
          myConnection1.Open();
          Console.WriteLine("Hello World");
          Console.ReadLine();
    }
}

The same code compiles and run fine if i just switch the compiler from mono to .NET.

Am i m making something wrong? could you guys help me out with some information about using mono with firebird?

Any help is welcome,

Thanx in advance.

Reply via email to