Topic "Help with Winscp.dll installation"

Author Message
sarathicse
[View user's profile]

Joined: 2013-11-18
Posts: 4
Location: Chennai, India
I am trying the below C# example in Visual Studio

https://winscp.net/eng/docs/library_session_getfiles#example

But it gives me Error
The type or namespace name 'WinSCP' could not be found (are you missing a using directive or an assembly reference?) C:\Users\sarathik\Desktop\SFTP Test\SFTP Test WinSCP\SFTP Test WinSCP\Program.cs 4 7 SFTP Test WinSCP

I am using 5.1.7 WinSCP.
I downloaded the .NET component and extracted it in C:\Program Files (x86)\WinSCP folder
I used the following command for registering the component %WINDIR%\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe WinSCP.dll /codebase /tlb
It registered.

But even still the program shows the namespace is not available.

What am i doing wrong here. Is there a way to verify if the dll is loaded correctly.

Should i need to copy it somewhere to get this working?
_________________
Thanks,
Sarathi.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Have you tried to debug this with Fuslogvw.exe?
https://msdn.microsoft.com/en-us/library/e74a18c4.aspx
Attach Fuslogvw.exe log file if you need further help.
sarathicse
[View user's profile]

Joined: 2013-11-18
Posts: 4
Location: Chennai, India
prikryl,

I will check on this and will update the status.......
_________________
Thanks,
Sarathi.
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