跳转到主内容
Waters China

打开 NuGenesis Archive Template Builder 时出现“对象变量或 With 块变量未设置”错误 - WKB17046

故障描述

  • 创建新的或打开现有的 SDMS 存档模板时,出现以下错误信息:
    • 运行时间错误“91”:对象变量或 With 块变量未设置
  • Archive Template Builder 程序不运行。

环境

  • NuGenesis 9 SDMS
  • NuGenesis 8 SDMS

原因

程序文件未在系统中注册

解决方法

  1. 使用管理员权限打开命令提示符窗口,并输入以下命令:
    • 对于服务器或 64 位客户端:
      • C:\Windows\syswow64\regsvr32.exe C:\Windows\syswow64\NgArMSLObs.dll
    • 对于 32 位客户端:
      • C:\Windows\system32\regsvr32.exe C:\Windows\system32\NgArMSLObs.dll

附加信息

一般情况下,在程序加载过程中出现“对象变量或 With 块变量未设置”信息,表示找不到必要的 DLL 文件或者该文件没有注册。对于 NuGenesis Archive Template Builder,最有可能导致该错误的是 NgArMSLObs.dll 文件。如果注册此文件不能解决问题,请使用 Process Monitor /或 Dependency Walker 工具来识别程序所需的 DLL 文件。

id17046, runtime error