title: Mono throws Exception when trying to connect to MySQL-database
body: <p>I have a simple application (.NET 4.5.2) which makes usage of the MySQL-driver (v6.9.8) for .NET/Mono. It works perfectly on .NET (Windows) but throws an exception on Ubuntu (Mono v4.2.1) as soon as I invoke the Connect-method.</p>
  
  <pre><code>2016-06-21 16:21:19,659 [1] WARN  MySql.DatabaseDriverMySql [(null)] - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly 'System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
  File name: 'System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at System.Reflection.MonoProperty.GetterAdapterFrame[T,R] (System.Reflection.Getter`2 getter, System.Object obj) &lt;0x7f65f01aece0 + 0x00039&gt; in &lt;filename unknown&gt;:0
    at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) &lt;0x7f65f01aef20 + 0x000d9&gt; in &lt;filename unknown&gt;:0
    --- End of inner exception stack trace ---
    at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) &lt;0x7f65f01aef20 + 0x00117&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.NativeDriver.SetConnectAttrs () &lt;0x40e6a2f0 + 0x00138&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate (Boolean reset) &lt;0x40e69830 + 0x0016b&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.NativeDriver.Authenticate (System.String authMethod, Boolean reset) &lt;0x40e68320 + 0x000af&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.NativeDriver.Open () &lt;0x40e5c9d0 + 0x00787&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.Driver.Open () &lt;0x40e5c980 + 0x0003b&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.Driver.Create (MySql.Data.MySqlClient.MySqlConnectionStringBuilder settings) &lt;0x40e56be0 + 0x00173&gt; in &lt;filename unknown&gt;:0
  System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly 'System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
  File name: 'System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at System.Reflection.MonoProperty.GetterAdapterFrame[T,R] (System.Reflection.Getter getter, System.Object obj) &lt;0x7f65f01aece0 + 0x00039&gt; in &lt;filename unknown&gt;:0
    at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) &lt;0x7f65f01aef20 + 0x000d9&gt; in &lt;filename unknown&gt;:0
    --- End of inner exception stack trace ---
    at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) &lt;0x7f65f01aef20 + 0x00117&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.NativeDriver.SetConnectAttrs () &lt;0x40e6a2f0 + 0x00138&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate (Boolean reset) &lt;0x40e69830 + 0x0016b&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.NativeDriver.Authenticate (System.String authMethod, Boolean reset) &lt;0x40e68320 + 0x000af&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.NativeDriver.Open () &lt;0x40e5c9d0 + 0x00787&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.Driver.Open () &lt;0x40e5c980 + 0x0003b&gt; in &lt;filename unknown&gt;:0
    at MySql.Data.MySqlClient.Driver.Create (MySql.Data.MySqlClient.MySqlConnectionStringBuilder settings) &lt;0x40e56be0 + 0x00173&gt; in &lt;filename unknown&gt;:0
  </code></pre>