This was it, after putting an empty string in the PasswordSalt column, it works.Shalex wrote:So try leaving the PasswordSalt fields blank when migrating.
Thanks!
Code: Select all
"Could not load type 'CoreLab.MySql.Web.Providers.MySqlMembershipProvider'."
Code: Select all
...
Code: Select all
public static DbConnection Connection
{
get { return new MySqlConnection(); }
}
Code: Select all
Code: Select all
return DbProviderFactories.GetFactory( CurrentFactory );
1. I'm doing this currently.1. Make sure you close all data readers explicitly.
2. If you use Prepare() method of MySqlCommand class, call Dispose() after closing reader.
3. If you use connection pooling, call MySqlConnection.Ping() method before MySqlConnection.Open().
4. If above doesn't help and you use connection pooling, check if you can turn connection pooling off.
Code: Select all
// Put Byte[] in data field
MemoryStream stream = new MemoryStream();
pboxMap.Image.Save( stream,
System.Drawing.Imaging.ImageFormat.Bmp );
farm.Map = stream.ToArray();
// Create a parameter and add to the DbCommand
DbParameter param = GenerateParameter( "Map", farm );
param.Size = farm.Map.Length;
cmd.Parameters.Add( param );
private DbParameter GenerateParameter(
string name,
FarmInfo farm
)
{
PropertyInfo property = FARM_TYPE.GetProperty( name );
DbParameter parameter = GenericDbFactoryHelper.Parameter;
parameter.ParameterName = "@" + name;
parameter.Value = property.GetValue( farm, null );
return parameter;
}
Code: Select all
MemoryStream stream2 = new MemoryStream( farm.Map );
pboxMap.Image = new Bitmap( stream2 );