Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
Dev Center
Table of contents

Error Troubleshooting

The connection with the server was terminated abnormally

Symptom

When you upload images from Dynamic Web TWAIN’s buffer, you may receive the following error message returned by the ErrorString property:

terminated-abnormally

Cause

  1. The problem may occur when a connection with the server is not available.
  2. The size of images you are going to upload goes beyond the maximum transferable data size which is defined by the server.

Solution

  1. Please make sure the address of the server is available. To check this, you can ping the address from a client machine. Note: Both the machine name and the IP address of the server can be used for the HTTP Upload method.

  2. Please make sure you specify the correct port. The default port is 80. If you are using other port, please use HTTPPort to specify it in code. We recommend you get the Port and Server value this way:

     strHTTPServer = location.hostname;
     WebTWAIN.HTTPPort = location.port == "" ? 80 : location.port;
    
  3. Please reset the maximum transferable data size:

    • If you are using ASP.NET, you can change the value at the following line in the Web.Config file.
     <httpRuntime maxRequestLength="1000000" /> //You can change the value by yourself.
    
    • If you are using PHP, you can change the value at the following line in the php.ini file
     upload_max_filesize = 2M //You can change the value by yourself.
    
    • If you are using ASP

      Scenario #1: using ASP on IIS 6:

        1. Start -> Run, type cmd.
        2. Go to C:\Inetpub\AdminScripts by typing: cd C:\Inetpub\AdminScripts
        3. To view max request entity allowed: cscript adsutil.vbs set w3svc/AspMaxRequestEntityAllowed
      

      Scenario #2: using ASP on IIS 7:

        1. Start -> Run , type InetMgr to open IIS 7 Manager
        2. {Your WebSite} -> Feature View -> ASP -> Limites Properties
        3. Set a bigger value for Maximum Requesting Entity Body Limit, like "1000000"
      

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version
    • Version 17.2.1
    • Version 17.1.1
    • Version 17.0
    • Version 16.2
    • Version 16.1.1
    Change +
    © 2003–2022 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support