# Updating the Stone Web Viewer WASM binaries to version 2.1

**URL:** https://discourse.orthanc-server.org/t/updating-the-stone-web-viewer-wasm-binaries-to-version-2-1/2512
**Category:** Google Groups archive
**Created:** [July 6, 2021, 1:10pm UTC](https://discourse.orthanc-server.org/t/updating-the-stone-web-viewer-wasm-binaries-to-version-2-1/2512 "2021-07-06T13:10:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![erkenh](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/e/ba9def/32.png) [@erkenh](https://discourse.orthanc-server.org/u/erkenh)
#### Post date: [July 6, 2021, 1:10pm UTC](https://discourse.orthanc-server.org/t/updating-the-stone-web-viewer-wasm-binaries-to-version-2-1/2512/1 "2021-07-06T13:10:15Z")

</div>

Hello,

I was running the Stone Web Viewer behind the NGINX with WASM binaries. When I updated to them version 2.1, I started to get these errors.

ReferenceError: stoneWebViewerVersion is not defined.

![Ekran Resmi 2021-07-06 16.09.27.png](https://discourse.orthanc-server.org/uploads/default/original/1X/c98ad06c5ef0b4814bb458fa5d84dba30c11039a.png)

Thanks,  
Hasan

---

<div class="post-metadata">

### Author: ![erkenh](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/e/ba9def/32.png) [@erkenh](https://discourse.orthanc-server.org/u/erkenh)
#### Post date: [July 6, 2021, 1:21pm UTC](https://discourse.orthanc-server.org/t/updating-the-stone-web-viewer-wasm-binaries-to-version-2-1/2512/2 "2021-07-06T13:21:45Z")

</div>

When I open the Stone Web Viewer in Chrome cognito mode I got this error.

![Ekran Resmi 2021-07-06 16.20.58.png](https://discourse.orthanc-server.org/uploads/default/original/2X/6/6bd4d41529c5413b1685eb4f7704fe0e35354980.png)

6 Temmuz 2021 Salı tarihinde saat 16:10:15 UTC+3 itibarıyla Hasan Erken şunları yazdı:

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [July 6, 2021, 2:03pm UTC](https://discourse.orthanc-server.org/t/updating-the-stone-web-viewer-wasm-binaries-to-version-2-1/2512/3 "2021-07-06T14:03:40Z")

</div>

Hello,

From what I can see, the “app.js” file does not match the version of the “StoneWebViewer.wasm” file, which most probably indicates a cache problem. Make sure to disable the cache in nginx.

Sébastien-

---

<div class="post-metadata">

### Author: ![erkenh](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/e/ba9def/32.png) [@erkenh](https://discourse.orthanc-server.org/u/erkenh)
#### Post date: [July 7, 2021, 5:14am UTC](https://discourse.orthanc-server.org/t/updating-the-stone-web-viewer-wasm-binaries-to-version-2-1/2512/4 "2021-07-07T05:14:00Z")

</div>

Thanks, for your help,  
Now cache problem is solved, however, now I have got another error stated below. When I call the study to Stone Web VieWer, Stone is now initialized but I have got a parse error.

![Ekran Resmi 2021-07-06 16.20.58.png](https://discourse.orthanc-server.org/uploads/default/original/2X/6/6bd4d41529c5413b1685eb4f7704fe0e35354980.png)

When i click the error, this source code comes.

![Ekran Resmi 2021-07-07 08.10.56.png](https://discourse.orthanc-server.org/uploads/default/original/2X/1/103026a112ece818d8890e91745c352b91bea724.png)

Thanks,  
Hasan Erken

6 Temmuz 2021 Salı tarihinde saat 17:03:40 UTC+3 itibarıyla [s.jo...@gmail.com](mailto:s.jo...@gmail.com) şunları yazdı:

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [July 7, 2021, 6:27am UTC](https://discourse.orthanc-server.org/t/updating-the-stone-web-viewer-wasm-binaries-to-version-2-1/2512/5 "2021-07-07T06:27:48Z")

</div>

This most likely indicates that you haven’t properly setup the DICOMweb server.

Carefully review the logs of Orthanc, in “–verbose” mode:  
[https://book.orthanc-server.com/faq/log.html](https://book.orthanc-server.com/faq/log.html)

Make sure that the DICOMweb plugin is installed in Orthanc:  
[https://book.orthanc-server.com/plugins/dicomweb.html](https://book.orthanc-server.com/plugins/dicomweb.html)

Make sure to correctly branch the REST API of Orthanc behind nginx:  
[https://book.orthanc-server.com/faq/nginx.html](https://book.orthanc-server.com/faq/nginx.html)

Check out the configuration option “DicomWebRoot” of the “configuration.json” in the configuration of the Stone Web viewer, so as it matches the location of the DICOMweb root behind the nginx reverse proxy:  
[https://hg.orthanc-server.com/orthanc-stone/file/StoneWebViewer-2.1/Applications/StoneWebViewer/WebApplication/configuration.json](https://hg.orthanc-server.com/orthanc-stone/file/StoneWebViewer-2.1/Applications/StoneWebViewer/WebApplication/configuration.json)

In either case, as you are off-piste skiing by not using the Stone Web viewer plugin, so I will not provide further advice:  
[https://book.orthanc-server.com/plugins/stone-webviewer.html](https://book.orthanc-server.com/plugins/stone-webviewer.html)
