[Mono-list] Pooling=false in connectionString cause Unhandled Exception: System.EntryPointNotFoundException: CreateSemaphore

enzo enzo.arlati at libero.it
Tue Aug 28 16:32:42 EDT 2007


Robert Jordan wrote:
> Hi,
>
>
> Well, the build script is intended to be used with the latest
> connection version:
>
> http://dev.mysql.com/downloads/connector/net/5.0.html
>
> I thought it's self-evident, sorry.
>
> Robert

But for a real 'mono' beginner as I'm there is still a lot of 
self-evident things to discover :-D
and thanks to your suggestions , at least I succeded in compile the source.
Thanks for your patience.

After that I added to the assembly a strong name and added it to the gac.

Now I found another problem
the simple code belowe
       string connectionString = "Server=localhost;Database=test;" +
                                 "User ID=test;Password=test;" +
                                 "Pooling=true";

       IDbConnection dbcon;
       dbcon = new MySqlConnection(connectionString);
       Console.WriteLine( "Main  dbcon.Open() " ); 
       dbcon.Open();

sometimes hang when is tring to do Open(), other times it report the 
following errors

[enzo at enzo6 gtk1]$ mono test1-mysql.exe
Main  start
Main  dbcon.Open()

Unhandled Exception: System.Resources.MissingManifestResourceException: 
Could not find any resource appropiate for the specified culture or its 
parents. Make sure "MySql.Data.MySqlClient.Source.Resources.resources" 
was correctly embedded or linked into assembly "MySql.Data".
  at System.Resources.ResourceManager.InternalGetResourceSet 
(System.Globalization.CultureInfo culture, Boolean Createifnotexists, 
Boolean tryParents) [0x00000]
  at System.Resources.ResourceManager.InternalGetResourceSet 
(System.Globalization.CultureInfo culture, Boolean Createifnotexists, 
Boolean tryParents) [0x00000]
  at System.Resources.ResourceManager.InternalGetResourceSet 
(System.Globalization.CultureInfo culture, Boolean Createifnotexists, 
Boolean tryParents) [0x00000]
  at System.Resources.ResourceManager.GetString (System.String name, 
System.Globalization.CultureInfo culture) [0x00000]
  at MySql.Data.MySqlClient.Resources.get_PerfMonCategoryName () [0x00000]
  at MySql.Data.MySqlClient.PerformanceMonitor..ctor 
(MySql.Data.MySqlClient.MySqlConnection connection) [0x00000]
  at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000]
  at Test.Main (System.String[] args) [0x00000]

It's seems that I missing something again.

Regards, Enzo



============================================================================
REPLY TO: perl -e 'print qq^VVCWCQJUVD00YQVWKVBPG^^qq^3898m08970Yp584299l93^ '
  VOIP SKYPE:earlati - VOIP SIP: sip:earlati at ekiga.net
  AIM:earlati - ICQ:321489699 - MSN:enzo.arlati at libero.it
  http: http://earlati.freehostia.com
============================================================================
trusted computing,  who is it ? -->  http://www.p2pforum.it/counter/click.php?id=21 
============================================================================



More information about the Mono-list mailing list