Mark Ismail Mark Ismail - 1 year ago 237 Question

Could not load file or assembly 'MySqlBackup, Version=

Dim conn As MySqlConnection = New MySqlConnection(ServerString)
Dim cmd As MySqlCommand = New MySqlCommand
cmd.Connection = conn
Dim mb As MySqlBackup = New MySqlBackup(cmd)

I keep getting this error: An unhandled exception of type 'System.IO.FileLoadException' occurred in System.Windows.Forms.dll

Additional information: Could not load file or assembly 'MySqlBackup, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

Any Suggestion? Thanks

Answer Source

I just want to thank everyone who tried to answer this question. That's why i love this site. I fixed this problem, by uninstalling and installing back visual studio. Then i installed MySqlBackup.NET (using NuGet package manager) Version, which automatically installed MySql.Data version 6.9.9. It works perfectly. I'm not saying that's best solution, but it works.

To whoever worked on MySqlBackup.NET. Gold bless his heart. It works flawlessly and so easy to use.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download