×
MENU
Resources Base
Table of contents

Handling Errors

‘Activating the WebTwain instance’ prompt doesn’t disappear

  • Symptom

We have encountered many a such issue that when running DWT in WASM mode, it doesn’t get past the step that says ‘Activating the WebTwain instance’.

activating-the-WebTwain-instance-1

  • Cause

The cause is that the wasm has been served with an incorrect MIME type in which case the browser won’t be processing the wasm after it is downloaded as it doesn’t know how to handle such files, therefore it stops dead there. To confirm the issue, open dev tools and switch to network and you’ll see something similar to this (note that content-type is wrong, it may not be what you see in this example but it’s definitely not application/wasm.

Notice that there are no more activity after this in network.

activating-the-WebTwain-instance-2

If it’s right, more wasm files will follow like this:

activating-the-WebTwain-instance-3

  • Resolution

Make sure the wasm files can be served correctly. Different servers are configured differently. Here are some popular ones:

NGINX: mime.types IIS: Web.config Java™ EE web app: web.xml Node.js: npm mime

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version
    • Version 16.1.1
    Change +
    © 2003–2020 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support