In comparison with Node.js IIS can't resolve .data, .wasm and .License extensions without the specification of corresponding MIME types. So deploying with IIS you can get an error:
CompileError: WebAssembly.instantiate() expected magic word...
To fix the problem you need to specify the MIME types for your web site (root directory):
- Open IIS manager
- In Features View, double-click on MIME Types
- In the Actions pane, click on Add
- In the Add MIME Type dialog box, type the following file name extensions in the File name extension text box and MIME types in the MIME type text box
.wasm as application/wasm
.License as application/octet-stream
.data as application/octet-stream - Click OK
Comments
0 comments
Please sign in to leave a comment.