Community

How to deploy Mobile Web Capture sample on IIS?

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):

  1. Open IIS manager
  2. In Features View, double-click on MIME Types
  3. In the Actions pane, click on Add
  4. 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
  5. Click OK
0

Comments

0 comments

Please sign in to leave a comment.