Topic "WinSCP Classes Not Available in Visual Studio 2012"

Author Message
SkipLewis
[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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Did you add winscpnet.dll as a reference to your project?

Or for a simplicity, use WinSCP NuGet package:
https://winscp.net/eng/docs/library_install#nuget

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

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

Skip
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License