The server threw an exception (80010105)

To the Ipswitch web site

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



The server threw an exception (80010105)Expand / Collapse
Author
Message
Posted 7/14/2004 3:21:46 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 12/13/2004 11:44:00 AM
Posts: 1, Visits: 1

i'm getting the following error when i call CreateConnection on my WsftpApi object:

System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. at WsftpSDK.WsftpApiClass.CreateConnection(String Host, String userId, String password, Int32 nType, Int32 port)

here's what i do: i create a connection, download some files, and disconnect.  the second time around, i get the above error.  i am using the same WsftpApi instance to create both connections, and both connections are to the same address and port with the same username and password.  the first attempt works, the second attempt does not.

please help!

Post #48
Posted 9/22/2004 7:03:06 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 12/30/2004 3:17:00 PM
Posts: 7, Visits: 1
Scott,

In Visual Basic6, We do this in our FTP "Loop": (Code Fragment)
---
' Create FTP Connection - ONCE in this loop!
Set pConn = papi.CreateConnection(ftpSite, ftpUser, ftpPassword,
WsftpConnectionTypes.WSFTP_CT_FTP, 21)
.
.
.
*** Transfer Some Files ***
.
.
.

' If we connected to a session then disconnect it!
If Not (pConn Is Nothing) Then

' *** Disconnect from FTP Session ***
pConn.Disconnect
'
' Clear Connection Data
Set pConn = Nothing
'
' *** End of FTP Transfer Files Loop ***
'
End If
---

Then call the same logic to transfer more files later. Key to this is
the "pConn.Disconnect" and "set pConn = Nothing".

We are then able to call the loop again without a connection issue.

Hope that helps you fix the problem.


Post #1565
« 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 3:37am

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