Troubleshooting: dynamsoft.dcsEnv.init() failed

Symptom:

When calling dynamsoft.dcsEnv.init(), the failure callback function is reached and you get the following errors.

  1. Dynamsoft Camera JS library cannot be used in current Internet options settings.
  2. Failed to download the DCS module. Please check the network connection and try again later.
  3. Failed to send the DCS module to Dynamsoft Service. Please check the network connection and try again later.
  4. Failed to connect to the DCS module. Please check the network connection and try again later.

Solution:

For error message #1
In IE 6-9

  1. Add current website to the zone of trusted sites under IE | Tools | Internet Options | Security | Trusted Sites.
  2. Enable "Access data sources across domains" under IE | Tools | Internet Options | Security | Trusted Sites | Custom Level... | Miscellaneous
  3. Enable Access data sources across domains

  4. Refresh your browser.

For error message #2, #3

  1. Check the network connection.
  2. Make sure the file WinDCS_5.2.0.0310.zip is under the DCSResources folder.

For error #4

  1. Check the network connection.
  2. Make sure the file WinDCS_5.2.0.0310.zip is under the DCSResources folder.
  3. If you are using a HTTPS site in Firefox, please restart your browser.
  4. Try refreshing your browser. If the issue persists, please also try restarting Dynamsoft Service in Windows Local Services.

If this article doesn't help resolve the issue, please contact Dynamsoft support team for further assistance.