Could not load file or assembly 'WinSCPnet ...

Advertisement

rgaetan
Joined:
Posts:
16
Location:
Decatur, IL

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,096
Location:
Prague, Czechia

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

Is it plain old VB or VB.NET?
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,096
Location:
Prague, Czechia

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?

Reply with quote

rgaetan
Joined:
Posts:
16
Location:
Decatur, IL

Could not load file or assembly 'WinSCPnet ...

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

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum