TestStand 無法載入檔案或程序集

更新 Jun 19, 2023

產品資訊

軟體

  • 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 和用戶界面將configuration files更新為與 TestStand 201x 不相容的狀態。當 TestStand 201x 嘗試使用更新的configuration files啟動時,會發生錯誤。

要更正此問題,請按照以下步驟操作:
  1. 刪除或備份 SeqEdit.xml 和 UserInterface.xml 文件,以及 layout_current.bin 和 layout_current_old.bin 文件(如果存在),它們默認位於TestStand Local Application Data 文件夾中。
  2. 啟動 TestStand 2012 Sequence Editor。 SeqEdit.xmlUserInterface.xml文件將重新生成,TestStand 將成功啟動。
這些錯誤也可能表明您的 TestStand 安裝中存在損壞。如果上述步驟不起作用,您可以嘗試在您的計算機上使用 NI Package Manager 修復或卸載並重新安裝 TestStand

相關資訊

這些文件包含Sequence Editor和用戶界面的配置選項,例如Insertion Palette pane 和 Variables pane上使用的面板大小和字體設定,以及Sequence Editor的當前用戶的佈置。如果您打算以後再次安裝 TestStand 201x SP1,請考慮備份這些文件以供屆時使用。