Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

Exactly what directory are you talking about
rgaetan

Could not load file or assembly 'WinSCPnet ...

A ha! That was it! I put it in the program files 86\winscp directory.
martin

Re: Could not load file or assembly 'WinSCPnet ...

OK, do you have WinSCPnet.dll (version 1.1.5.4130 of WinSCP 5.5.2 release) in the same directory, where you application executable is?
rgaetan

Re: Could not load file or assembly 'WinSCPnet ...

This is Visual Basic Studio .NET 4
martin

Re: Could not load file or assembly 'WinSCPnet ...

Is it plain old VB or VB.NET?
rgaetan

Could not load file or assembly 'WinSCPnet ...

Running WinSCP lib 5.5.2.4130. In Visual Basic, code works like a charm. Have winscpnet 1.1.5.4130 installed as "Browse". When I build program and run it from DOS, I get error. Full error is:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'WinSCPnet, Version=1.1.5.4130, Culture=neutral, PublicKeyToken=<xxxxxxxxxxxxxxxxxxx>' or one of its dependencies. The system cannot find the file specified. at Loop.Module1.Main(). I registered for COM as Framework and Framework64 and have a tlb file. WinSCPnet.dll is not blocked, that was checked. I don't know what else could possibly be going on. Any thoughts?