TestStand Crashes Immediately After Opening

Updated May 2, 2018

Reported In

Software

  • TestStand 2014 SP1
  • TestStand 2016 SP1
  • TestStand 2014
  • TestStand 2016

Issue Details

TestStand crashes as soon as I try to open it. This happens when using the TestStand Version Selector or if I try to open the application shortcut.

TestStand 20XX Sequence Editor has stopped working
Windows can check online for a solution to the problem.




What happened that is causing TestStand to crash immediately after opening the application?

Solution

Installing the SP1 version of a given year of TestStand updates the TestStand Runtime to the SP1 version. This can cause conflicts when working with the non-SP1 version of TestStand.

Below is an excerpt from an NI MAX Technical Report on a computer showing the immediate crashing behavior. See Using MAX Technical Report to Document Configuration Information for more information on how to create a MAX Technical Report. Notice the TestStand Runtime is a newer version (16.1.0.52 aka 2016 SP1) than the TestStand Sequence Editor (16.0.0.185 aka 2016). This causes a resource conflict because the Sequence Editor doesn't see a Runtime of the same version.


To resolve the issue:

Using non-SP1 Version of TestStand:

Uninstall all TestStand packages of the version year you're working with. This includes the TestStand Development System and Runtime for both 20XX and 20XX SP1. Then install the non-SP1 version. This will reinstall the correct non-SP1 version of the TestStand Development System, Sequence Editor, and Runtime.
  • Note: A force reinstall of TestStand does not replace a full uninstall of all TestStand 20XX packages of the same year.

Using the SP1 Version of TestStand:

Install the 2016 SP1 version for either 32-bit and 64-bit. Upgrading to the SP1 version should update any TestStand Development Systems and Runtimes to SP1.
  • Note: This step is only valid if your serial number or licensing model covers the update to the SP1 version of the software. Check with your software administrator to see what software you have access to.

Additional Information

To further verify that the crash is related to version differences between the TestStand Sequence Editor and Runtime, you can use Fusion Logs. Fusion Logs can be enabled one of two ways.

Registry Keys

Add the following 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\)


Make sure you include the backslash after the folder name and that the folder exists. You will need to restart the program that you're running to read the new registry settings.

Fusion Log Viewer (fuslogvw.exe)

Fusion Log Viewer installs with Visual Studio and Microsoft SDK. You must run fuslogvw.exe as administrator. See Fuslogvw.exe (Assembly Binding Log Viewer) for additional steps on creating fusion logs.

With either of these methods a .htm document should be created when the computer sees a bind failure. Check these logs for the TSDotNetSupport.dll being valled by a newer version. An excerpt of a fusion log showing the bind between TestStand Sequence Editor 2016 and TestStand Runtime 2016 SP1 is included below. The log basically says "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

WAS THIS ARTICLE HELPFUL?

Not Helpful