Description:
When adding an instance ( Instances tab/Add/MySql Instance ) Notifier fails with
Could Not load file or assembly 'MySql.Data, Version=6.9.9.0,...........
(Strong name validation failed. (Exception from HRESULT: 0x8013141A)
at MySql.Notifier.Classes.MySqlInstance.CheckInstanceStatusWorkerDoWork(Object sender, DoWorkEventArgs e)
at MySql.Notifier.Classes.MySqlInstance.CheckInstanceStatus(Boolean asynchronous)
at MySql.Notifier.Classes.MySqlInstancesList.Add(MySqlInstance item)
at MySql.Notifier.Forms.ManageItemsDialog.MySQLInstanceToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
How to repeat:
add any instance
Suggested fix:
I downloaded the source to see what was going on and the build architecture was set to x86. I changed to (CPU any), compiled/installed and the error went away. (VS2015)
I SUGGEST you offer both an x86 and an x64 compiled version.
The DLL signing at least on my win10 does not work with the compiled x86 Mysql.Data.dll and possibly the other two in there( I didn't check them )
I installed the original from MySql Installer and there was only the x86 offered