0

I am referencing the Renci SSH library in my project and I am trying to execute the code. I get an error saying:

Could not load file or assembly 'Renci.SshNet, Version=2013.4.7.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

I checked the properties of the reference and 'Copy local' is set to true.

ChrisWue
  • 18,612
  • 4
  • 58
  • 83
Vijay
  • 167
  • 6

1 Answers1

1

The problem can be when DLL exists, but it can depends on others - then you still get error "cannot find file"

Use file monitor during load to find which DLL is missing

Or use depends utility on ssh library to find the same

Iłya Bursov
  • 23,342
  • 4
  • 33
  • 57
  • I am using just one dll in the project - Renci.SshNet. Any idea why this is not being detected? – Vijay Oct 17 '13 at 19:20
  • @user2891821 so, check with file monitor is it really loaded, maybe it looks in wrong places, so you need to copy your dll into proper folder – Iłya Bursov Oct 17 '13 at 19:24