This exception raises cause some charsets are missing on mono. I had some
problems using Win1252 on Mono. To solve it I setted some charsets on MONO
compiler directive and recompile the .Net Provider's project with target
compiler setted to MONO. This action ignore the problematic charsets into a
MONO assembly
This isn't the best way to do this. But maybe should solve your trouble;
*João Dias de Carvalho Neto
**
*
*Analista Desenvolvedor
+55-87-8811-8945
**Petrolina - Pernambuco - Brasil
*
Resumo e
Portifólio<https://docs.google.com/document/d/1IOH0_t6KORnaLtBVRBGHwQotgDPIz-ksF0txG5lKJ78/edit?hl=pt_BR>
2011/3/24 Antony Veretennikov (JIRA) <trac...@firebirdsql.org>
> An exception was thrown by the type initializer for
> FirebirdSql.Data.Common.Charset
>
> -----------------------------------------------------------------------------------
>
> Key: DNET-374
> URL: http://tracker.firebirdsql.org/browse/DNET-374
> Project: .NET Data provider
> Issue Type: Bug
> Components: ADO.NET Provider
> Affects Versions: 2.6
> Environment: Operating system: Ubuntu maverick 10.10
> Developing environment: .Net version 2.0
> Executeble environment: Mono 2.6.7
> FireBird Server version 2.5
> runtime for DataAdapter is .net 2.0
> Reporter: Antony Veretennikov
> Assignee: Jiri Cincura
> Priority: Blocker
>
>
> Im from russia. Excuse me for my bad english.
> I saw like exception. that is not same.
>
> I have a project writing on C# in Vs 2005 IDE. the program must work on
> Windows and Linux(Ubuntu and Suse 11). A Specially compiled version of .net
> adapter for linux under .net 2.0 is not. ( i used the specially version.
> These Adapter have a references to assemblies under a runtime of version 4
> ) Therefore I chose what was. It is locating here
> http://sourceforge.net/projects/firebird/files/firebird-net-provider/2.6.0/NETProvider-2.6.0-NET20.7z/download
> .
>
> Under Windows + .Ner 2.0 this program works right.
>
> Under Ubuntu + Mono the programm occours next exception.
>
> An exception was thrown by the type initializer for
> FirebirdSql.Data.Common.Charset
>
> The Database encoding is WIN1251
>
> StackTrace:
> An exception was thrown by the type initializer for
> FirebirdSql.Data.Common.Charset
>
>
>
> at FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect ()
> [0x00000] in <filename unknown>:0
> at (wrapper remoting-invoke-with-check)
> FirebirdSql.Data.FirebirdClient.FbConnectionInternal:Connect ()
> at FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create () [0x00000] in
> <filename unknown>:0
> at FirebirdSql.Data.FirebirdClient.FbConnectionPool.CheckOut () [0x00000]
> in <filename unknown>:0
> at (wrapper remoting-invoke-with-check)
> FirebirdSql.Data.FirebirdClient.FbConnectionPool:CheckOut ()
> at FirebirdSql.Data.FirebirdClient.FbConnection.Open () [0x00000] in
> <filename unknown>:0
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://tracker.firebirdsql.org/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider