SOLVED Could not load file or assembly ‘Renci.SshNet – MySQL

Solved Could not load file or assembly ‘Renci.SshNet, Version=2016.1.0.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106’ or one of its dependencies ?

The Solution is right below 

Working with MySQL database, have you realized all the while the MySql connection is lost for no reason? 

Now you go to visual studio project libraries you will find MySQL client dll still available but initiating the connection.open(), compiler throws an exception below. MySQL client is missing its dependencies.

Could not load file or assembly ‘Renci.SshNet, Version=2016.1.0.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106’ or one of its dependencies. The system cannot find the file specified.


If you are reading this line, great you spot the right solution.

Step by Step
  1. Go to your Visual Studio Project Solution Explorer
  2. Right click on the References
  3. Click on Mange NuGet Packet References and click Browse 
  4. Search for “Renci.SshNet.Async”
  5. Install and rebuild the solution
  6. Now, try to initiate MySQL Database connection will be successful.

Published by arjunpremier

Software Engineer, Blogger,

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started