smartFTP compatibility with Compact Framework v2.0

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
kcee
Posts: 2
Joined: Fri Aug 01, 2008 8:23 pm

smartFTP compatibility with Compact Framework v2.0

Post by kcee » Fri Aug 01, 2008 8:40 pm

Hello there~

It seems most of the people here are having successes in using smartFTP for their applications. But not me. HELP me out guys

I am trying to use smartFTP library for Visual Basic .net in Visual Studio 2005. The compiled application in .exe will run on Windows CE 5.0 based device running arm4i processor. However, I am not seeing any successes in number of different tries I have attempted on the device using the smartFTP library.

The following is the code that I used. (most of the code, pretty much all, has been written using the post in this forum):

Code: Select all

Imports sfFTPLib



Public Class smartFTPTest1



	Public Shared Sub main()

		Dim myFTPServices As New FTPServices

		If (myFTPServices.EstablishConnection()) Then

			Console.WriteLine("Successful!!")

		End If



		MsgBox("I am here!!!", MsgBoxStyle.ApplicationModal)

	End Sub





	Public Class FTPServices



		Dim strUsername As String = "username"

		Dim strPassword As String = "********"

		Dim strServer As String







		'Public objFTP As New sfFTPLib.SFTPConnection	   





		Dim objFTP As sfFTPLib.FTPConnectionMTAClass = New sfFTPLib.FTPConnectionMTA





		'objFTP = New sfFTPlib.FTPConnectionMTA



		Public Function EstablishConnection() As Boolean



			' ---------------------------------------------------------------------------------

			' Function - FTPServices.EstablishConnection

			' Written by - Syd O

			' Created on - 27 May '08

			' Last Update -

			' Function Purpose - To establish connection to FTP Server Securely

			' ---------------------------------------------------------------------------------



			If vbTrue Then ' Currently a Stub for testing & evaluation. ALWAY WILL RETURN TRUE



				' note Server is Gene6 FTP and is configured to accept Explicit SSL on port 21

				' The server operates with SmartFTP client and has no issues we are aware of



				strServer = "www.anSFTPwebsite.com" ' Only For Testing



				objFTP.Host = strServer

				objFTP.Port = 22

				objFTP.Protocol = sfFTPLib.enumProtocol.ftpProtocolSSLExplicit

				objFTP.Username = strUsername

				objFTP.Password = strPassword

				objFTP.MLST = True

				objFTP.Passive = True





				'objFTP.ClientHostname = System.Environment.MachineName

				'objFTP.Proxy.Type = enumProxyType.ftpProxyTypeNone

				'objFTP.Client = "VBExpress"

				'objFTP.LogFile = System.Environment.MachineName + ".log"



				Select Case objFTP.Connect()



					Case enumError.ftpErrorSuccess

						MsgBox("Connected")



					Case Else

						MsgBox(enumError.ftpErrorConnect.ToString)



				End Select



			End If



		End Function



	End Class



End Class

Here is the error message upon deploying the application:

COMException was unhandled:
COM object with CLSID '{B32243B2-7D9E-464D-A2A4-4117540E0F70}' cannot be created due to the following error: 0x80040154


To the best of my knowledge, I think the COM component must be used when a piece of code is designed in a different platform and the developer needs to use that module. How would I go about fixing this? Am I understanding the problem correctly?


I will be spending sleepless nights until this gets solved. Please save me from those sleepless nights, guys.
Thanks for all your future help in advance.

- Kevin
Last edited by kcee on Fri Aug 01, 2008 8:59 pm, edited 1 time in total.

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: smartFTP compatibility with Compact Framework v2.0

Post by mb » Fri Aug 01, 2008 9:08 pm

Hello ..

I don't think the SmartFTP FTP Library component runs on Windows CE 5.0.

Regards,
Mat

kcee
Posts: 2
Joined: Fri Aug 01, 2008 8:23 pm

Re: smartFTP compatibility with Compact Framework v2.0

Post by kcee » Sun Aug 03, 2008 6:59 am

Hello ..

I don't think the SmartFTP FTP Library component runs on Windows CE 5.0.

Regards,
Mat


So you don't think that I can somehow add component hacks to resolve the interfacing?

Thanks in advance.

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: smartFTP compatibility with Compact Framework v2.0

Post by mb » Sun Aug 03, 2008 7:08 am

No sorry. Windows CE only supports a very limited subset of the Windows API.

Regards,
mat

Post Reply