WsftpSDK.WsftpConnection failing with C#

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



WsftpSDK.WsftpConnection failing with C#Expand / Collapse
Author
Message
Posted 10/19/2006 3:33:02 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/14/2006 1:11:00 PM
Posts: 1, Visits: 1

I am using wsftp SDK 8.1 and using the DLL with C# code

1. WsftpApiClass gobjFTP =new WsftpSDK.WsftpApiClass();

2. WsftpConnection gobjFTPConn = new WsftpSDK.WsftpConnection();

Line 2 is failing with message ---- Additional information: COM object with CLSID {1E3F7F5B-3E4C-4D5F-A340-421FD658D3EE} is either not valid or not registered.

Its working fine with vb6 and vb.net

Pls reply.

Post #23763
Posted 11/13/2006 10:56:04 PM
Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: Forum Members
Last Login: Yesterday @ 5:26:39 PM
Posts: 202, Visits: 139

To create connections you can not use operation "new", but use methods CreateConnection or CreateUrlConnection of the API.

In your case:

1. WsftpApiClass gobjFTP =new WsftpSDK.WsftpApiClass();

2. WsftpConnection gobjFTPConn = gobjFTP.CreateUrlConnection("ftp://ftp.domain");

 

Claudio Robles
WS_FTP Team

Post #24650
Posted 6/30/2008 1:02:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/30/2008 11:18:38 PM
Posts: 1, Visits: 5
I am also having the simialr problem in C#.

Very similar error msg. Please suggest

WsftpSDK.WsftpConnection pConn;
  WsftpSDK.WsftpApiClass oftp;

  public SFTPHelper()
  {
   
   oftp = new WsftpSDK.WsftpApiClass();
   oftp.DiagnosticLog=false;
   oftp.TimeStampLog=false;   
  }
  public WsftpSDK.WsftpConnection OpenConnection()
  {
   try
   {
    pConn=oftp.CreateConnection(m_FTPServer,m_UserId,m_Password,(int)   WsftpSDK.WsftpConnectionTypes.WSFTP_CT_SFTP,m_Port);
   }
   catch (Exception ex)
   {
    pConn=null;
   }
   return pConn;   
  }
  

Post #44997
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Hush, FTPplanet.com, Hugh Garber, WUP-PM, mmulryan@ipswitch.com, mswimm

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 2:44am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 8 queries. Compression Enabled.