Page 1 of 1

ComponentResourceManager

Posted: Thu 16 Nov 2006 15:23
by RJordan
The command generator of mysqldatatable sometimes generates code in the InitializeComponent() part that looks like this:

System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(User));
this.mySqlConnection1 = new CoreLab.MySql.MySqlConnection();
this.mySqlDataTable1 = new CoreLab.MySql.MySqlDataTable();
this.mySqlDeleteCommand1 = new CoreLab.MySql.MySqlCommand();
this.mySqlInsertCommand1 = new CoreLab.MySql.MySqlCommand();
this.mySqlSelectCommand1 = new CoreLab.MySql.MySqlCommand();
this.mySqlUpdateCommand1 = new CoreLab.MySql.MySqlCommand();
...
//
// mySqlDeleteCommand1
//
this.mySqlDeleteCommand1.CommandText = "DELETE FROM testuser WHERE ((UserID = :Original_UserID))";
...
//
// mySqlInsertCommand1
//
this.mySqlInsertCommand1.CommandText = resources.GetString("mySqlInsertCommand1.CommandText");...

What is it with the resource string? They are not found at runtime and causes an error. And why is this defined for some strings (not for all)?

Kind regards,
Roger

Posted: Fri 17 Nov 2006 13:30
by Alexey
What version of Visual Studio do you use?
Professional or Standard edition?
What version of MySQLDirect .NET do you use (Std, Pro, Mobile)?
Do you write class library (dll), executable application (exe), web project,
web project with dynamically compiled sources?

Posted: Sat 18 Nov 2006 20:18
by RJordan
- VS2005 Professional
- MySqlDirect 3.50.14 25.10.06 Pro
- develop web project without dynamically compiled source

The resource string are in the resource file of the aspx file.

Posted: Mon 20 Nov 2006 07:33
by Alexey
We cannot reproduce this behaviour. Please ascertain the circumstances when this take place.