Jump to content


Photo

smartFTP compatibility with Compact Framework v2.0


  • Please log in to reply
3 replies to this topic

#1 KCee

KCee
  • Members
  • 2 posts

Posted 01 August 2008 - 08: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):

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. B)
Thanks for all your future help in advance. :(

- Kevin

Edited by KCee, 01 August 2008 - 08:59 PM.


#2 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 01 August 2008 - 09:08 PM

Hello ..

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

Regards,
Mat

#3 KCee

KCee
  • Members
  • 2 posts

Posted 03 August 2008 - 06: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. :(

#4 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 03 August 2008 - 07:08 AM

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

Regards,
mat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users