West Wind Internet and Client Tools
SFTP basics
Gravatar is a globally recognized avatar based on your email address. SFTP basics
  Wayne Willingham
  All
  Jun 12, 2017 @ 08:56am

Creating an SFTP utility, and I can't even get started. No doubt it's me, but all assistance is appreciated! From a barebones VFP 9.0:

SET PATH TO [L:\WEBCONNECT610\CLASSES\;\\D2G.CORP\SHARED\LEGACY\FHCODE\PROGRAM\;\\D2G.CORP\SHARED\LEGACY\SOURCE\LB\PRGS\;]
DO wwHttp
DO l:\webconnect610\classes\wwsftp.prg

loFtp = CREATEOBJECT("wwSftp")

That's where I get my error Line 73 of wwSftp.prg, in the LOAD: this.oBridge = GetwwDotnetBridge()

I get the following error: File 'getwwdotnetbridge.prg' does not exist.

I'm obviously missing the obvious.

Gravatar is a globally recognized avatar based on your email address. re: SFTP basics
  Rick Strahl
  Wayne Willingham
  Jun 12, 2017 @ 11:34am

You need to add:

do wwdotnetbridge

to load the wwDotnetBridge library.

FWIW, that's a bug - that should be in the header of wwsftp and fire when you DO wwSFTP. I've added added for the next version.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: SFTP basics
  Wayne Willingham
  Rick Strahl
  Jun 13, 2017 @ 08:29am

Thanks - progress, I think. Now getting:

Unable to load wwDotNetBridge: Unable to load Clr Instance. 0x80131515:

SET PATH TO [L:\WebConnect610\classes;L:\WebConnect610\]
do wwdotnetbridge
SET PROCEDURE TO wwDotNetBridge ADDITIVE
SET STEP ON 
SET PROCEDURE TO wwSftp.prg ADDITIVE
loFtp = CREATEOBJECT("wwSftp")    && ERROR on the init!!
loFtp.nFtpPort = 23
lcHost = "127.0.0.1"

Gravatar is a globally recognized avatar based on your email address. re: SFTP basics
  Wayne Willingham
  Rick Strahl
  Jun 14, 2017 @ 09:31am

Thanks. Windows 8.1 pro doesn't have the "Unblock" button, but copying the .dll to a local folder solved the problem (I was running from the network before).

Gravatar is a globally recognized avatar based on your email address. re: SFTP basics
  Rick Strahl
  Wayne Willingham
  Jun 14, 2017 @ 10:59am

Well if it's a network file you can't unblock because that's a different security scenario.

The right way to do this is to add the .config file to your vfp9.exe and your application's EXE. Once you do that you can run off the network drive.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: SFTP basics
  Wayne Willingham
  Wayne Willingham
  Jun 21, 2017 @ 11:35am

I'm sure that makes perfect sense, but what ```foxpro .config

file?

 
Gravatar is a globally recognized avatar based on your email address. re: SFTP basics
  Rick Strahl
  Wayne Willingham
  Jun 21, 2017 @ 03:37pm

Did you look at the link I posted?

+++ Rick ---

© 1996-2024