Skip to content
STAGING SERVER
DEVELOPMENT SERVER

Error: "Failed to expand HAP file" / "Unable to load vas.dll Error code: -122"#

Issue#

After creating a VisualApplets .hap file and trying to run that file on another computer, an error message may be displayed:

  • In microDisplay: "Unable to load vas.dll Error code: -122"
    Error Message in microDisplay
  • In microDisplay X: "ERROR Failed to expand HAP file while opening shared library …/vas.dll: The specified module could not be found."
    Error Message in microDisplay X

Solution#

The .hap file was probably created using an older Windows version and then run on a newer Windows version, e.g., Windows 10.

Installing the "Microsoft Visual C++ 2015-2022 Redistributable (x64)" package solved the problem:

Visual C++ 2015-2022 Redistributable

Back to Knowledge Articles