[Mono-dev] Fwd: mysql-connector ArgumentNullException
Daniel Lo Nigro
lists at dan.cx
Tue Dec 18 22:22:43 UTC 2012
What version of the MySQL library are you using? I'm using MySql.Data 6.5.4
from NuGet <http://nuget.org/packages/Mysql.Data> and it's working for me
on Mono 3.0.2.
My connection string looks like this:
Server=10.0.2.1; Database=daniel15_dev; Uid=username; Pwd=password;
On Mon, Dec 10, 2012 at 12:46 AM, lth3726381 <lth3726381 at gmail.com> wrote:
> Thanks 4 your reply:
>
> I tried the correct username and pwd,but there is another similar question:
>
>
> 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_PerfMonCategoryName ()
> [0x00000] in <filename unknown>:0
> at MySql.Data.MySqlClient.PerformanceMonitor..ctor
> (MySql.Data.MySqlClient.MySqlConnection connection) [0x00000] in <filename
> unknown>:0
> at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000] in <filename
> unknown>:0
> at Tutorial1.Main () [0x00019] in /home/l/Projects/MySql/MySql/Main.cs:17
> Done.
>
>
> My connetion string is :
> string connStr =
> "server=localhost;user=root;database=exp;port=3306;password=l;";
> and I tried:
> string connStr = "Server=localhost;" + "Database=exp;" + "User ID=root;" +
> "Password=l;" + "Pooling=false";
>
> the user and password is correct.
>
> BTW , my program run corrected before I compiled the new mono source.
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/mysql-connector-ArgumentNullException-tp4657666p4657714.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20121219/03a8f75b/attachment.html>
More information about the Mono-devel-list
mailing list