title: MySQL.Data.dll error in monodevelop in Debian mono
body: <p>Application was initially developed in VS 2008. It uses MySQL.data.dll for connecting to MySQL database. Application runs perfectly fine in Windows.</p>
  
  <p>But production environment is Debian with mono.  </p>
  
  <p>Now copied entire solution in the Debian box. Entire solution opens in monodevelop correctly. It doesn't throw any error in building. But while running - it throws following error –</p>
  
  <p>The file sending is in process..........</p>
  
  <pre><code>Error: System.EntryPointNotFoundException: CreateSemaphore
    at (wrapper managed-to-native) MySql.Data.Common.Semaphore:CreateSemaphore (MySql.Data.Common.SECURITY_ATTRIBUTES&amp;,int,int,string)
    at MySql.Data.Common.Semaphore..ctor (Int32 initialCount, Int32 maximumCount) [0x00000] 
    at (wrapper remoting-invoke-with-check) MySql.Data.Common.Semaphore:.ctor (int,int)
    at MySql.Data.MySqlClient.MySqlPool..ctor (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000] 
    at MySql.Data.MySqlClient.MySqlPoolManager.GetPool (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000] 
    at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] 
  </code></pre>