Skip to content

Commit 608f7fe

Browse files
authored
Merge pull request #19 from Dynamsoft/rebecca
Rebecca - fix sth & new article added
2 parents d0afc5a + 9ce2725 commit 608f7fe

23 files changed

+64
-8
lines changed

_includes/sidelist-indepth/troubleshooting.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<li><a href="{{ site.indepth }}troubleshooting/common-errors/source-connected-to-maximum.html" class="otherLinkColour">Source Connected To Maximum</a></li>
2222
<li><a href="{{ site.indepth }}troubleshooting/common-errors/sequence-error.html" class="otherLinkColour">Sequence Error</a></li>
2323
<li><a href="{{ site.indepth }}troubleshooting/common-errors/dwt-md5-is-not-allowed.html" class="otherLinkColour">dwt-md5 Is Not Allowed</a></li>
24+
<li><a href="{{ site.indepth }}troubleshooting/common-errors/activating-the-WebTwain-instance.html" class="otherLinkColour">Activating the WebTwain instance</a></li>
2425
</ul>
2526
</li>
2627
{%- endif -%}

_includes/sidelist-info/releases.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{%- if page.url contains '/schedule/' -%}
44
<li><a href="{{site.info}}schedule/stable.html" class="otherLinkColour">Stable</a></li>
55
<li><a href="{{site.info}}schedule/beta.html" class="otherLinkColour">Beta</a></li>
6-
<li><a href="{{site.info}}schedule/Developping.html" class="otherLinkColour">Developping</a></li>
6+
<li><a href="{{site.info}}schedule/Developing.html" class="otherLinkColour">Developing</a></li>
77
<li><a href="{{site.info}}schedule/proposed.html" class="otherLinkColour">Proposed</a></li>
88
<li><a href="{{site.info}}schedule/ideas.html" class="otherLinkColour">To Consider</a></li>
99
<li><a href="{{site.info}}schedule/deprecated.html" class="otherLinkColour">Deprecated</a></li>
24.8 KB
Loading
25.5 KB
Loading
29.4 KB
Loading

indepth/troubleshooting/common-errors/HTTP-process-error.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: default-layout
3+
noTitleIndex: true
34
needAutoGenerateSidebar: true
45
title: Dynamic Web TWAIN Troubleshooting HTTP Process Error
56
keywords: Dynamic Web TWAIN, Documentation, Troubleshooting, Common Errors, HTTP Process Error

indepth/troubleshooting/common-errors/HTTP-request-error.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: default-layout
3+
noTitleIndex: true
34
needAutoGenerateSidebar: true
45
title: Dynamic Web TWAIN Troubleshooting HTTP Request Error
56
keywords: Dynamic Web TWAIN, Documentation, Troubleshooting, Common Errors, HTTP Request Error

indepth/troubleshooting/common-errors/JPEG-compression.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: default-layout
3+
noTitleIndex: true
34
needAutoGenerateSidebar: true
45
title: Dynamic Web TWAIN Troubleshooting Only 24-bit True Color bmp And 8-bit gray-scaled Image Are Supported For JPEG Compression
56
keywords: Dynamic Web TWAIN, Documentation, Troubleshooting, Common Errors, JPEG Compression

indepth/troubleshooting/common-errors/XMLHttpRequest-cannot-load.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: default-layout
3+
noTitleIndex: true
34
needAutoGenerateSidebar: true
45
title: Dynamic Web TWAIN Troubleshooting XMLHttpRequest Cannot Load XXX
56
keywords: Dynamic Web TWAIN, Documentation, Troubleshooting, Common Errors, XMLHttpRequest Cannot Load XXX
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: default-layout
3+
noTitleIndex: true
4+
needAutoGenerateSidebar: true
5+
title: Dynamic Web TWAIN Troubleshooting Activating The WebTwain Instance Prompt Doesn't Disappear
6+
keywords: Dynamic Web TWAIN, Documentation, Troubleshooting, Common Errors, Activating The WebTwain Instance Prompt Doesn't Disappear
7+
breadcrumbText: Activating The WebTwain Instance
8+
description: Dynamic Web TWAIN SDK Documentation Troubleshooting Activating The WebTwain Instance Prompt Doesn't Disappear Page
9+
---
10+
11+
# Handling Errors
12+
13+
14+
## 'Activating the WebTwain instance' prompt doesn't disappear
15+
16+
* Symptom
17+
18+
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'.
19+
20+
![activating-the-WebTwain-instance-1]({{site.assets}}imgs/activating-the-WebTwain-instance-1.png)
21+
22+
* Cause
23+
24+
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.
25+
26+
Notice that there are no more activity after this in network.
27+
28+
![activating-the-WebTwain-instance-2]({{site.assets}}imgs/activating-the-WebTwain-instance-2.png)
29+
30+
If it's right, more wasm files will follow like this:
31+
32+
![activating-the-WebTwain-instance-3]({{site.assets}}imgs/activating-the-WebTwain-instance-3.png)
33+
34+
* Resolution
35+
36+
Make sure the wasm files can be served correctly. Different servers are configured differently. Here are some popular ones:
37+
38+
NGINX: [ `mime.types` ](https://www.nginx.com/resources/wiki/start/topics/examples/full/#mime-types)
39+
IIS: [ `Web.config` ](https://docs.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/mimemap#how-to-add-a-mime-type-to-a-web-site-or-application)
40+
Java™ EE web app: [ `web.xml` ](https://docs.oracle.com/cd/E24329_01/web.1211/e21049/web_xml.htm#WBAPP533)
41+
Node.js: [ `npm mime` ](https://www.npmjs.com/package/mime-types)

0 commit comments

Comments
 (0)