Solution
The Error 1172 is a generic error when a .NET call throws an exception of some kind. This solution focuses on the scenario when opening an VeriStand project only and the inner exception of
Object reference not set to an instance of an object. Please refer to the related links for other scenarios or more generic debugging of this error.
This specific error case is harmless and does not affect the operation of VeriStand or the project. It should also not occur in VeriStand 2021 or later.
Updating to VeriStand 2021 or above is one way to resolve this.
For previous versions (VeriStand 2020 R6 and earlier), the following workaround is available to remove this error pop-up.
- Ensure VeriStand is closed and no windows open.
- Make a backup copy of the following file. Filepath: C:\Program Data\National Instruments\NI VeriStand 2020\Project Window\Project Window Main.xml
- Move the backup to a separate location on disk to prevent VeriStand trying to process both .xml flies.
- Edit the original file by removing the red section in the following image. Note the line numbers may be different, but it is the <ActionVIOnLoad> section that you want.
- Restart VeriStand
The VeriStand project will now open with no
Error 1172 pop-up window.
If you start witnessing VeriStand crashes or unexpected behaviour after modifying this, follow the following steps to reverse this.
- Delete the file C:\Program Data\National Instruments\NI VeriStand 2020\Project Window\Project Window Main.xml.
- Move the backup copy of Project Window Main.xml to C:\Program Data\National Instruments\NI VeriStand 2020\Project Window\