[Mono-dev] Fwd: mysql-connector ArgumentNullException

lth3726381 lth3726381 at gmail.com
Sun Dec 9 13:46:12 UTC 2012


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.


More information about the Mono-devel-list mailing list