| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Error when storing many files on the server |
| wilkens awilkens@somague.pt From: sintra, Portugal Posts: 1 Member Since: 05/13/05 |
posted May 13, 2005 11:09 AM I´m using the Transfer Manager sample,with some changes.... 'the same as the click but es function. Function cmdAddTransfer(ByVal Server As String, ByVal Username As String, ByVal Password As String, ByVal LocalFile As String, ByVal RemoteFile As String, ByVal Restart As Boolean, ByVal StoreRetrieve As String) As Transfer ' Create a new ListViewItem that will be passed to a new Transfer object Dim lvi As ListViewItem lvi = lvwTransfer.Items.Add(Server) ' Create a new Transfer object and pass the obtained information to ' it's constructor (Timeout will be hard-coded to 30 seconds) Dim t As New Transfer(lvi, _ Me, _ Server, _ Username, _ Password, _ LocalFile, _ RemoteFile, _ Restart, _ True, _ 30000) ' Assign the new Transfer to the Tag of the ListViewItem so that ' it can be referenced later from this form lvi.Tag = t lvi.SubItems.Add(RemoteFile) lvi.SubItems.Add(LocalFile) lvi.SubItems.Add("") lvi.SubItems.Add("") lvi.SubItems.Add("") ' Initiate Transfer If StoreRetrieve.ToLower = "store" Then t.Store() Else t.Retrieve() End If Return (t) End Function ---------------------------------------- I call this function in a for each to send many diferent files from diferent directories to the server . When I store more then 49 files at the same time to the ftp server I get the log: ------------------------------------------------ 220 Microsoft FTP Service USER ******** 331 Password required for ********. PASS ******** 230 User ***** logged in. TYPE I 200 Type set to I. SIZE 383-632515903695876222.zip 550 383-632515903695876222.zip: The system cannot find the file specified. PASV 227 Entering Passive Mode (172,20,7,103,12,7). --------------------------------------- when I store 49 file os less to store server i get: 220 Microsoft FTP Service USER ******** 331 Password required for *****. PASS ******** 230 User ******* logged in. TYPE I 200 Type set to I. SIZE 383-632515907484542624.zip 550 383-632515907484542624.zip: The system cannot find the file specified. PASV 227 Entering Passive Mode (172,20,7,103,12,54). STOR 383-632515907484542624.zip 125 Data connection already open; Transfer starting. 226 Transfer complete. QUIT ----------------------------------------------------------- in other machine, the "limit" is 24 files..... how can I know and change it? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 13, 2005 12:20 PM Each transfer uses it's own thread. You are probably using all the threads that are available to your application. There are a couple forum threads that cover this. Start by reading this one: http://support.dart.com/postings?topicid=3441 |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|