| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: ASP.Net - Dim New Ftp - Occasional Request lock-up |
| scott_w001 From: Dallas, TX USA Posts: 1 Member Since: 05/25/05 |
posted May 27, 2005 8:01 PM Hi, Using 2.2.5.0 of FTP for .NET Standard running on Win Server 2003. I'm launching a site that supports a "Send a File" feature, where the user can fill out a request form and attach a file to be sent to a particular retail store. After being uploaded to the Webserver, the app then FTP's the file up to a linux box. The process works flawlessly 95% of the time. But, it seems that occasionally, once every hour or two, a request will not make it. From the user's perspective, the browser just sticks in a "Waiting for Reply..." state. Meanwhile, the server has run every line of code perfectly up to a certain point, and then quits. I've added a log to my app so I can pin point exactly where the crash happens. Here's the code and what happens: Sub SendBtn_OnClick '(Do a bunch of stuff here) 'This line appears in the log file.... Log(" Yes! Files are attached") Dim NewFileName As String Dim NewPath As String = "/s" & myStoreID.ToString & "/incoming/" Dim sNow As String = Now().ToString Dim FileList As String Dim oFtp As Ftp = New Ftp oFtp.Server = "ftp.blah.com" oFtp.Username = "user" oFtp.Password = "pass" 'This line does NOT appear in the log file. Log(" Loop through " & CStr(UploadedFiles.GetUpperBound(1)) & " files.") '(Do a bunch more stuff here) End Sub Given that most of those statements are pretty basic, I'm assuming that the line that is tripping ASP up is the "New Ftp" part. When this occurs, ASP.NET continues serving up requests to other users. In fact, others can continue using the same page without issue. Once the web browser finally gets a timeout error, the user often resubmits and it works just fine. So, why does this happen every once in a while? Here is another interesting factoid, possibly related, maybe not. While debugging, I've noticed that the system event logs tells me about once a day that the FTP tool is still running in trial mode (11 days left, as of today). Interestingly, I've tried correcting this numerous times, and the registration app even tells me that it's registered, but those log entries keep showing up. The error doesn't occur in a reproducable way. Though I've tested extensively, I cannot find a particular thing that will trigger the failure. It happens when multiple users are hitting the site, and it happens when there hasn't been a single request in 5 to 10 minutes. It's not as common during off-peak hours, though. Any help on this would be awesome - I'm so stumped on this one, and the site is already live, so my client is a little annoyed ;-). Appreciate anything ya got! Thanks, Scott Wilson scott@zunch.com |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 27, 2005 10:30 PM It sounds like you tried to deploy before purchasing and then didn't rebuild after the purchase. After you purchase and install the license on the development computer, you have to do a complete rebuild on the app, then deploy it to the target server. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|