Looks like your MySQL credentials (username and password) might be wrong, and the error is occuring when it tries to retrieve the message for the error:
... /home/l/桌面/mono_src/mcs/class/corlib/System.Resources/ResourceManager.cs:252 at MySql.Data.MySqlClient.Properties.Resources.get_*AuthenticationFailed*() [0x00000] in <filename unknown>:0 at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.* AuthenticationFailed* (System.Exception ex) [0x00000] in <filename unknown>:0 ... Try checking that the username and password are valid. On Fri, Dec 7, 2012 at 12:48 AM, lth3726381 <lth3726...@gmail.com> wrote: > > Hi : > When i use the original package mono and mysql in ubuntu 11.04 ,everything > is ok; > but after i compiled the new mono source and run the program again,i got an > exception: > > System.ArgumentNullException: Argument cannot be null. > Parameter name: key > at System.Resources.ResourceManager.InternalGetResourceSet > (System.Globalization.CultureInfo culture, Boolean createIfNotExists, > Boolean tryParents) [0x0023c] in > > /home/l/桌面/mono_src/mcs/class/corlib/System.Resources/ResourceManager.cs:439 > at System.Resources.ResourceManager.InternalGetResourceSet > (System.Globalization.CultureInfo culture, Boolean createIfNotExists, > Boolean tryParents) [0x00209] in > > /home/l/桌面/mono_src/mcs/class/corlib/System.Resources/ResourceManager.cs:430 > at System.Resources.ResourceManager.InternalGetResourceSet > (System.Globalization.CultureInfo culture, Boolean createIfNotExists, > Boolean tryParents) [0x00209] in > > /home/l/桌面/mono_src/mcs/class/corlib/System.Resources/ResourceManager.cs:430 > at System.Resources.ResourceManager.GetString (System.String name, > System.Globalization.CultureInfo culture) [0x0002e] in > > /home/l/桌面/mono_src/mcs/class/corlib/System.Resources/ResourceManager.cs:252 > at MySql.Data.MySqlClient.Properties.Resources.get_AuthenticationFailed > () > [0x00000] in <filename unknown>:0 > at > > MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationFailed > (System.Exception ex) [0x00000] in <filename unknown>:0 > at > MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket > () [0x00000] in <filename unknown>:0 > at > > MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate > (Boolean reset) [0x00000] in <filename unknown>:0 > at MySql.Data.MySqlClient.NativeDriver.Authenticate (System.String > authMethod, Boolean reset) [0x00000] in <filename unknown>:0 > at MySql.Data.MySqlClient.NativeDriver.Open () [0x00000] in <filename > unknown>:0 > at MySql.Data.MySqlClient.Driver.Open () [0x00000] in <filename > unknown>:0 > at MySql.Data.MySqlClient.Driver.Create > (MySql.Data.MySqlClient.MySqlConnectionStringBuilder settings) [0x00000] in > <filename unknown>:0 > at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection () > [0x00000] > in <filename unknown>:0 > at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection () [0x00000] in > <filename unknown>:0 > at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver () [0x00000] in > <filename unknown>:0 > > How to solve it ? Is this a bug? > > sorry 4 my bad English. > > lth > > > > -- > View this message in context: > http://mono.1490590.n4.nabble.com/mysql-connector-ArgumentNullException-tp4657666.html > Sent from the Mono - Dev mailing list archive at Nabble.com. > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list >
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list