跳转到内容
暂存服务器
开发服务器

错误:“Failed to expand HAP file” / “Unable to load vas.dll Error code: -122”#

问题#

在创建 VisualApplets .hap 文件并尝试在另一台计算机上运行该文件时,可能会显示错误消息:

  • 在 microDisplay: "Unable to load vas.dll Error code: -122"
    microDisplay 中的错误消息
  • 在 microDisplay X: "ERROR Failed to expand HAP file while opening shared library …/vas.dll: The specified module could not be found."
    microDisplay X 中的错误消息

解决方案#

.hap 文件可能是使用较旧的 Windows 版本创建的,然后在一个较新的 Windows 版本(例如 Windows 10)上运行。

安装“Microsoft Visual C++ 2015-2022 Redistributable (x64)”软件包即可解决此问题:

Visual C++ 2015-2022 Redistributable

返回知识库文章