Hi,

I had problems in connection with Firebird 2.1 and the Provider on Mono.

When the FbConnection.Open() method was called, one exception was raised:

Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for FirebirdSql.Data.Common.Charset --->
System.ArgumentException: Encoding name 'shift_jis' 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.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]

My connection string is:

Database=/home/harpia/data/hapiadados.fdb;Server=127.0.0.1;Dialect=3;Password=masterkey;Port=3050;User=SYSDBA;Charset=Win1252;

I had searching on web and I find something on this link

http://www.mail-archive.com/firebird-net-provider@lists.sourceforge.net/msg06892.html

Jiri answered on this link, that mono isn't supporting the referent charset
(UNICODE_FSS), but I would like to use Win1252

It is possible using Mono?

I try too:

1

To Donwload Mono's specific Firebird .Net Provider on this link
http://sourceforge.net/projects/firebird/files/firebird-net-provider/2.5.1/FirebirdClient-2.5.1-MONO_LINUX.7z/download

To install the assembly with gacutil command

To reference the assembly on my project

2

To Donwload the Firebird .Net provider's source

To Compile it with "LINUX;MONO" compiler directives on MonoDevelop (Like
Jiri suggested previously)

To reference the assembly on my project.

all my tries are failed! :-(

In the first try, the same exception persists. In the second try I could not
compile the source, cause one Compiling Time Exception was raised that looks
like a casting error

[Task:File=/home/jdias/Área de
Trabalho/NETProvider/source/FirebirdSql/Data/Client/Managed/Version10/GdsStatement.cs,
Line=731, Column=95, Type=Error, Priority=Normal, Description=Can not
compute type of conditional expression as `short' and `int' convert
implicitly to each other(CS0172)]

Please, someone can help me with this?

Where I can donwload an functional assembly to work on mono using Charset
Win1252?

Thanks for any help and sorry the bad English


-- 
João Dias de Carvalho Neto

http://www.jdiasneto.blogspot.com
jdias.bjsoftw...@gmail.com
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to