TestStand 无法加载文件或程序集

更新 May 24, 2024

适用于

软件

  • TestStand 2012
  • TestStand 2012 SP1
  • TestStand
  • TestStand 2016
  • TestStand 2016 SP1

问题详述

  • 我最近卸载了 TestStand 201x SP1,然后重新安装了 TestStand 201x(没有 SP1)。启动 TestStand Sequence Editor 时我收到以下错误:
 
Could not load file or assembly 'TSDotNetSupport, Version=5.0.1.23, Culture=neutral, PublicKeyToken=ad9244eb3b825cd8' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040
 
  • 当我尝试关闭 TestStand 时出现以下错误:
Could not load file or assembly 'IOConfigurationFramework, Version=20.0.0.49158, Culture=neutral, PublicKeyToken=ad9244eb3b825cd8' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040

解决方案

发生此错误的原因是 TestStand 201x SP1 Sequence Editor 和用户界面将配置文件更新为与 TestStand 201x 不兼容的状态。当 TestStand 201x 尝试使用更新的配置文件启动时,就会发生错误。

要更正此问题,请按照以下步骤操作:
  1. 删除或备份 SeqEdit.xmlUserInterface.xml 文件,以及 layout_current.binlayout_current_old.bin 文件(如果存在),它们默认位于TestStand Local Application Data 文件夹中。
  2. 启动 TestStand 201x Sequence Editor。 SeqEdit.xmlUserInterface.xml文件将自动重新生成,TestStand 将成功启动。
这些错误也可能表明您的 TestStand 在安装过程中存在损坏。如果上述步骤不起作用,您可以尝试在您的计算机上使用 NI Package Manager 修复或卸载并重新安装 TestStand

相关信息

这些文件包含 Sequence Editor 和用户界面的配置选项,例如 Insertion Palette 面板和变量(Variables)面板上使用的面板大小和字体设置,以及 Sequence Editor 的当前用户布局(user layout)。如果您打算以后再次安装 TestStand 201x SP1,请考虑备份这些文件以供届时使用。