title: Mac OS X Mono and MySql Connector Problem
body: <p>I downloaded mysql-connector-net-6.4.3-noinstall.zip, extracted and renamed mysql.data.dll to MySql.Data.dll:</p>
  
  <pre><code>$ cd v2/
  $ ls
  mysql.data.cf.dll      mysql.data.dll         mysql.data.entity.dll  mysql.visualstudio.dll mysql.web.dll
  $ mv mysql.data.dll MySql.Data.dll
  $ sudo gacutil /i MySql.Data.dll 
  Password:
  Installed MySql.Data.dll into the gac (/Library/Frameworks/Mono.framework/Versions/2.10.4/lib/mono/gac)
  </code></pre>
  
  <p>I than create a symbolic link in /Library/Frameworks/Mono.framework/Versions/2.10.4/lib/mono/2.0 to MySql.Data.dll:</p>
  
  <pre><code>$ sudo ln -s ../gac/MySql.Data/6.4.3.0__c5687fc88969c44d/MySql.Data.dll MySql.Data.dll
  </code></pre>
  
  <p>And create a package configuration file in /Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig so that I can reference package from MonoDevelop:</p>
  
  <pre><code>Name: MySql.Data
  Description: MySql.Data
  Version: 6.4.3.0
  Libs: -r:/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/2.0/MySql.Data.dll
  </code></pre>
  
  <p>Then I create a new console project, add a reference to MySql.Data and build. Compiler fails with the following exception:</p>
  
  <pre><code>Unhandled Exception: System.IO.FileLoadException: The assembly name is invalid.
    at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.ImportedAssemblyDefinition.ReadAttributes () [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.MetadataImporter.GetAssemblyDefinition (System.Reflection.Assembly assembly) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.ReflectionImporter.ImportAssembly (System.Reflection.Assembly assembly, Mono.CSharp.RootNamespace targetNamespace) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.DynamicLoader.LoadReferences (Mono.CSharp.ModuleContainer module) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.Driver.Compile () [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 
  [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileLoadException: The assembly name is invalid.
    at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.ImportedAssemblyDefinition.ReadAttributes () [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.MetadataImporter.GetAssemblyDefinition (System.Reflection.Assembly assembly) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.ReflectionImporter.ImportAssembly (System.Reflection.Assembly assembly, Mono.CSharp.RootNamespace targetNamespace) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.DynamicLoader.LoadReferences (Mono.CSharp.ModuleContainer module) [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.Driver.Compile () [0x00000] in &lt;filename unknown&gt;:0 
    at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 
  </code></pre>
  
  <p>I also tried referencing the assembly directly with the same result.</p>
  
  <p>Any advice?</p>
  
  <p>I can target my project to .NET Framework v2.0 and build OK with gmcs, but not .NET 3.5 or 4.0 with dmcs. </p>