TestStand 打開後立刻當掉

更新 Jan 20, 2025

產品資訊

軟體

  • TestStand

問題敘述

  • 當我打開 TestStand 2020 時,應用程序就當掉。我該如何解決這個問題?
  • 當我嘗試啟動 TestStand 時,它會在我登錄後立即關閉。有時我會看到以下錯誤:
Exception from HRESULT: 0xFFFFBBA4
Error Code: -17500, Operation Failed.
Source: 'TSAPI'
TS 錯誤 17500.png
  • TestStand 在啟動時就當掉。使用TestStand Version Selector 或嘗試打開應用程式捷徑時會發生這種情況。而且會跳出以下錯誤:
TestStand 20XX Sequence Editor has stopped working
Windows can check online for a solution to the problem.
 

 
 
 

解決方案

安裝所選定年份的 TestStand SP1 版本時會將 TestStand Runtime更新為 SP1 版本。而在使用非 SP1 版本的 TestStand 時,就可能會因此導致衝突。

請按照以下相關部分解決此問題。

使用非 SP1 版本的 TestStand:

  1. 卸載您當下使用的版本年份中所有的TestStand packages
    • 這包括 20XX 和 20XX SP1 的 TestStand Development System 以及 Runtime
  2. 然後安裝非SP1版本。
    • 這將重新安裝正確的非 SP1 版本的 TestStand Development System、Sequence Editor以及 Runtime
注意:強制重新安裝 TestStand並不會完全卸載並替換成同年的所有TestStand 20XX packages

使用 TestStand 的 SP1 版本:

  1. 安裝 20XX SP1 32 位或是 64 位版本。
    • 升級到 SP1 版本應該能將所有 TestStand Development System 以及 Runtime更新到 SP1。
注意:僅當您的序號或licensing model 能涵蓋到 SP1 版本的軟體更新時,此步驟才有效。請洽詢您的軟體管理員,了解您可以存取哪些軟體。

相關資訊

要進一步驗證當掉是否與 TestStand Sequence Editor Runtime之間的版本差異有關,您可以使用 Fusion Logs。 Fusion Logs 可以通過以下兩種方式任一來啟用。

  1. Registry Keys

添加以下Registry Keys。
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
Add:
DWORD ForceLog set value to 1
DWORD LogFailures set value to 1
DWORD LogResourceBinds set value to 1
DWORD EnableLog set value to 1
String LogPath set value to folder for logs (e.g. C:\FusionLog\)


確保有包括文件夾名稱後的反斜線並檢查該文件夾是否存在。您需要重新啟動正在運行的程式才能讀取新的 registry 設定。

2. Fusion Log Viewer (fuslogvw.exe) 

Fusion Log Viewer 隨 Visual Studio 和 Microsoft SDK 一起安裝。您必須以管理員身份執行fuslogvw.exe。有關創建fusion logs 的其他步驟,請參閱Fuslogvw.exe (Assembly Binding Log Viewer)。


若你使用了這兩種方法中的任何一種,當電腦發現綁定失敗時,都應該會創建了一個.htm 文件。你可以檢查這些日誌以獲取更新版本調用的 TSDotNetSupport.dll。

下面是顯示 TestStand Sequence Editor 2016 和 TestStand Runtime 2016 SP1 之間綁定fusion logs 摘錄。總之,日誌顯示“We looked for the 2016 version of the DLL but found a newer 2016 SP1 version.

LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: TSDotNetSupport, Version=16.0.0.185, Culture=neutral, PublicKeyToken=ad9244eb3b825cd8
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/National Instruments/TestStand 2016/Bin/TSDotNetSupport.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\Program Files (x86)\National Instruments\TestStand 2016\Bin\TSDotNetSupport.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: TSDotNetSupport, Version=16.1.0.52, Culture=neutral, PublicKeyToken=ad9244eb3b825cd8