Topic "Need Framework 4.0 version of WinSCP"

Author Message
loftism
[View user's profile]

Joined: 2014-12-12
Posts: 2
Location: CT
I believe I need a Framework 4.0 version of WinSCP.

I am trying to use it for the first time in my c# code.

1. I've downloaded version 5.5.6.4746. I believe this is Framework 4.5.
2. I've added the WinSCP.exe and WinSCPnet.dll to my output directory in my VS project file.
3. I've added a 'using WinSCP;' statement to my code.

It does not find the namespace. The error is "The type of namespace name "WinSCP" could not be found (are you missing a using directive or an assembly reference?)"

I'm new to c# programming, so it could just be inexperience. OS/app version info:

Windows 7 Pro, 64 bit
Visual Studio 2010 Pro
Framework 4.0 for c# app which will use WinSCP, platform x86
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
The WinSCPnet.dll targets .NET 2.0. So your should have no problems in 4.0 project.
I guess, you have not added the WinSCPnet.dll as a reference to your project.
loftism
[View user's profile]

Joined: 2014-12-12
Posts: 2
Location: CT
prikryl wrote:
The WinSCPnet.dll targets .NET 2.0. So your should have no problems in 4.0 project.
I guess, you have not added the WinSCPnet.dll as a reference to your project.


Right you are. Once I added WinSCPnet.dll as a Reference, in addition to adding it to the Output directory, the using namespace issue was resolved.

Thanks for the quick and accurate response!
Archana

Guest


Hello,
I am using visual studio 2010 and add reference of winSCP dll that is 4.0 version. But we getting integration of project my project members using Visual studio 2012 version 4.5 so there is error occurs "The version of C:\Program Files (x86)\WinSCP\winscp.exe (5.7.5.0) does not match version of this assembly E:\Projects\Abc\Abc\AbcApp\bin\Debug\WinSCPnet.DLL (5.7.4.0). You can disable this check using Session.DisableVersionCheck (not recommended)." Please solve my problem. How i come out from this problem.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Archana wrote:
Hello,
I am using visual studio 2010 and add reference of winSCP dll that is 4.0 version. But we getting integration of project my project members using Visual studio 2012 version 4.5 so there is error occurs "The version of C:\Program Files (x86)\WinSCP\winscp.exe (5.7.5.0) does not match version of this assembly E:\Projects\Abc\Abc\AbcApp\bin\Debug\WinSCPnet.DLL (5.7.4.0). You can disable this check using Session.DisableVersionCheck (not recommended)." Please solve my problem. How i come out from this problem.

You didn't add winscp.exe to be deployed your project.
The assembly finds instead installed version of WinSCP, which is of a different version.
See http://winscp.net/eng/docs/library_install#installing
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