I solve it i have added using FirebirdSql.Data.FirebirdClient;
I looked in the FirebirdClientFactory.cs and saw that the name changed

But now i have another error

Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for FirebirdSql.Data.Common.Charset
---> System.ArgumentException: Encoding name 'ks_c_5601-1987' not
supported
Parameter name: name
  at System.Text.Encoding.GetEncoding (System.String name) [0x00000]
  at FirebirdSql.Data.Common.Charset.GetEncoding () [0x00000]
  at FirebirdSql.Data.Common.Charset..ctor (Int32 id, System.String
name, Int32 bytesPerCharacter, System.String systemName) [0x00000]
  at FirebirdSql.Data.Common.Charset.Add
(System.Collections.Generic.List`1 charsets, Int32 id, System.String
charset, Int32 bytesPerCharacter, System.String systemName) [0x00000]
  at FirebirdSql.Data.Common.Charset.InitializeSupportedCharsets () [0x00000]
  at FirebirdSql.Data.Common.Charset..cctor () [0x00000] --- End of
inner exception stack trace ---

  at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect () [0x00000]
  at (wrapper remoting-invoke-with-check)
FirebirdSql.Data.FirebirdClient.FbConnectionInternal:Connect ()
  at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create () [0x00000]
  at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut () [0x00000]
  at (wrapper remoting-invoke-with-check)
FirebirdSql.Data.FirebirdClient.FbConnectionPool:CheckOut ()
  at FirebirdSql.Data.FirebirdClient.FbConnection.Open () [0x00000]

On 9/12/08, marius popa <[EMAIL PROTECTED]> wrote:
> I have tried to compile the example from mono but it gives errors with
> 1.7 that comes by default with ubuntu hardy/intrepid
> http://www.nabble.com/provider-1.7.1-and-Fb-2.1-to18170775.htm
> So now i compiled the provider with monodevelop
> I have opened the  solution and then made an build
> after that i have created the example project and added the 2.1 assembly
>
> but it gives an error
>
>
> [Task:File=/home/mariuz/firebirdtest/firebirdtest/Main.cs, Line=7,
> Column=24, Type=Error, Priority=Normal, Description=The type or
> namespace name `Firebird' does not exist in the namespace
> `FirebirdSql.Data'. Are you missing an assembly reference?(CS0234)]
> Here is the Main.cs example
>
> using System;
> using System.Data;
> using FirebirdSql.Data.Firebird;
>
>
>
> namespace firebirdtest
> {
> class MainClass
>  {
>  public static void Main(string[] args) {
>  string connectionString =
>  "Database=/var/lib/firebird/2.1/data/employee.fdb;" +
>  "User=SYSDBA;" + "Password=masterkey;" +
>  "Dialect=3;" + "Server=localhost";
>  IDbConnection dbcon = new FbConnection(connectionString);
>  dbcon.Open();
>  IDbCommand dbcmd = dbcon.CreateCommand();
>  string sql = "SELECT * FROM employee";
>  dbcmd.CommandText = sql;
>  IDataReader reader = dbcmd.ExecuteReader();
>  while(reader.Read()) {
>  object dataValue = reader.GetValue(0);
>  string sValue = dataValue.ToString();
>  Console.WriteLine("Value: " + sValue);
>  }
>  // clean up
>  reader.Close();
>  reader = null;
>  dbcmd.Dispose();
>  dbcmd = null;
>  dbcon.Close();
>  dbcon = null;
>  }
>               
>       }
> }
>
>
>
> --
> developer flamerobin.org
>


-- 
developer flamerobin.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to