Topic "WinSCP Classes Not Available in Visual Studio 2012"

Author Message
[View user's profile]

Joined: 2015-03-31
Posts: 4
Just downloaded and exploded the .ZIP for winscpnet.dll and winscp.exe. Then copied these files to the \bin folder of my VS project.

Object Explorer doesn't show any WinSCP components. Added "Imports WinSCP" to my VB.NET Code and tried to define a New SessionOptions Class, but the Class is considered invalid. I then successfully registered the .DLL using the "Registering for COM" instructions but these was no change.

I've closed and reopened VS after each change in case a refresh was needed.

Also tried these files in /obj/debug as the CodeProject article suggests. File permissions seems fine.

My machine is 64 bit and .NET 4.5.

Thanks in advance for any suggestions.

Skip Lewis
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24755
Location: Prague, Czechia
Did you add winscpnet.dll as a reference to your project?

Or for a simplicity, use WinSCP NuGet package:

No point registering the assembly for COM to use it from .NET language.
Martin Prikryl
[View user's profile]

Joined: 2015-03-31
Posts: 4
Thank you Martin. I'm really looking forward to working with your product.


You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License