Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 452
Product
XFile
Title
Error: "The connection with the server was terminated abnormally"
Problem
The upload fails and XFile returns the following error:

"Error: Source = SoftArtisans.XFRequest.1
Description = The connection with the server was terminated abnormally"

Or, you may see:
"The connection with the server was reset"
Solution

This error indicates that there was a problem in the server-side processing of the upload. XFile was still trying to send data, but the server stopped executing the processing script.

Any number of server-side problems can cause this, such as:

  • The processing script timed out
  • Syntax errors in the processing script
  • Page not found - the path passed to XFile for the processing page was misspelled
The reason the XFile error does not contain more detail about the server-side error, is that XFile inherently only knows about what happens on the client machine. By default, XFile will only return detailed error messages if it was unable to do its part of the file transfer. If, however, XFile is able to access the file on the user's machine and successfully send an HTTP post to the server, but the server fails to process the request, XFile will return this generic error.

To troubleshoot your problem, try the following steps:
  1. XFile has a Response property which captures the response from the server. On the HTML page instantiating XFile, use the Response property to output the response from the server. See the XFile documentation on this property.
  2. There are two samples attached which use the Response property: The sample in XFile_ASP_Response.zip uses the XFRequest object in an ASP page and displays the response using Response.Write. The sample in XFile_HTML_Response.zip uses the visual active-X object in an HTML page, puts a tag in the html page and sends the response to this span tag from the callback() sub in the progress page.
  3. Take a basic html upload form and submit it to the same server page processing the upload (see attached html page "files1.zip". point the form's action tag to your server-side processing page, select a file, and submit) Is there an error? The response displayed in the browser will often indicate exactly what the problem is.
  4. Again, this problem does not originate with XFile. Once you get the true error message, if the resolution is not obvious, troubleshoot the server-side issue as you normally would. If you are using FileUp to catch the uploads on the server, try searching the FileUp KB articles for assistance.

Attachments
Attachments/KB452_files1.zip
Attachments/KB452_XFile_html_response.zip
Attachments/KB452_Xfile_ASP_response.zip
Created : 12/1/2002 12:00:00 AM (last modified : 12/4/2002 2:44:00 PM)
Rate this article!
 
Comments