Distribute wodSFTP.OCX control And problem conecti - WeOnlyDo Discussion board

Distribute wodSFTP.OCX control And problem conecti (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Antonio01, Thursday, May 15, 2008, 10:15 (6037 days ago)

I would like to know How to distribute wodSFTP.OCX when using the ActiveX control. I have a problem of conection to ...

My Problem :

I have installed the wodsftp software my dll are on System32.
My webproject is in ASP. I read in the getting starded i need ti
Distribute wodSFTP.OCX when using the ActiveX control but i have no idea how to distribue it ??? Could you help me am i in rigth way to use wodSFTp with ASP and how to distribute an ocx file ...

I did a function to test but i have noting and no error message:

Function CopyFTP2test(host,user,pwd,localFile,remoteFile)

Dim success
Set wodSFTP1 = Server.CreateObject( CMT_AQU.WeOnlyDo.wodSFTPCom.1 )
Response.Write( object created )
wodSFTP1.Blocking = 1
Response.Write( object created )
wodSFTP1.LicenseKey = XXXXXX
Response.Write( asdfadsf )
Response.Write( wodSFTP1.LicenseKey ) // Nothing is Write think my object is not created .=(


wodSFTP1.Hostname = 10.68.2.11
wodSFTP1.Port = 22
wodSFTP1.Login = agarciae
wodSFTP1.Password = tototot
Response.Write( BEFORE CONECT ) // Nothing is Write on my page

wodSFTP1.Connect
wodSFTP1.ListDir /
Response.Write(wodSFTP1.ListItem) // nothing write
wodSFTP1.Disconnect


End Function

Re: Distribute wodSFTP.OCX control And problem con

by wodDamir, Thursday, May 15, 2008, 10:41 (6037 days ago) @ Antonio01

Hi Antonio,

Did you try our samples for ASP that came with the component? Do they work?

In order to distribute the component, all that you need to do is copy it to destination machine, and register the .ocx (or .dll) file using the RegSvr32.

However, in your code, you should change the following line:
[code]Set wodSFTP1 = Server.CreateObject( CMT_AQU.WeOnlyDo.wodSFTPCom.1 )[/code]
into this:
[code]Set wodSFTP1 = Server.CreateObject( WeOnlyDo.wodSFTPCom.1 ) [/code]

Please note that the above statement creates a COM object (uses wodSFTP.dll, and nto the wodSFTP.ocx). The difference is in WeOnlyDo.wodSFTPCom.1 , where wodSFTPCom is used for .dll, and WeOnlyDo.wodSFTP.1 is used for .ocx.

One more thing. Since you are using ASP, you should have in mind that the component will be used on server side. That means that the component doesn't run on client.

Can you please try the above suggestion and tell me if this helped? Ofcourse, I would strongly suggest that you try out our samples that are distributed along with the component. Those should give you the best quick start.

Regards,
Damba

Re: Distribute wodSFTP.OCX control And problem con

by Antonio01, Thursday, May 15, 2008, 10:49 (6037 days ago) @ wodDamir

Hi thanks for you quick reply amazing!

So i tried what you said to me to do in a simple ASP page on my server.

When i don´t write my licence key it´s work !!
but if i put wodSFTP1.LicenseKey = XXXX i have an error message :

Technical Information (for support personnel)

Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'LicenseKey'
/cmt_aqu/testSFTP.asp, line 7


Browser Type:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)

My code :

dim wodSFTP1
set wodSFTP1 = Server.CreateObject( WeOnlyDo.wodSFTPCom.1 )

wodSFTP1.Blocking = 1

'wodSFTP1.LicenseKey = XXXX

wodSFTP1.Hostname = 10.68.2.213
wodSFTP1.Port = 22
wodSFTP1.Login = agarciae
wodSFTP1.Password = tototo
wodSFTP1.Connect
wodSFTP1.ListDir /home/agarciae
Response.Write(wodSFTP1.ListItem )
Response.Write((</br>)
wodSFTP1.Disconnect


THANKS FOR ALL,

Antonio

Re: Distribute wodSFTP.OCX control And problem con

by wodDamir, Thursday, May 15, 2008, 10:59 (6037 days ago) @ Antonio01

Antonio,

In that case, you are probably still using Demo version which doesn't have LicenseKey property implemented.

If you check Version property, does it contain a word DEMO in it?

Regards,
Damba

Re: Distribute wodSFTP.OCX control And problem con

by Antonio01, Thursday, May 15, 2008, 11:04 (6037 days ago) @ wodDamir

Ok i have the demo version! where can i find the none demo version.

My boss only give the key and that's all. Happy to go quickly through my problem.

Thank you for your reply,

Antonio

Re: Distribute wodSFTP.OCX control And problem con

by wodDamir, Thursday, May 15, 2008, 11:06 (6037 days ago) @ Antonio01

Antonio,

The link to download full version was also included into the e-mail that the key was provided in.

However, you can request the new download link on the following URL:

http://www.weonlydo.com/index.asp?update=1

Please note that you have to provide the e-mail that was registered with our system when the component was purchased. A new e-mail containing the download link will be sent to that e-mail.

Regards,
Damba

Re: Distribute wodSFTP.OCX control And problem con

by Antonio01, Thursday, May 15, 2008, 11:38 (6037 days ago) @ wodDamir

Ok i get it!

Thank you very much !

Best regard,

Antonio