Unable To Open the Property Editor of a Measurement Studio Graph

Updated Nov 11, 2022

Reported In

Software

  • Measurement Studio

Other

Visual Studio

Issue Details

I am unable to launch or open the color map editor of a Measurement Studio graph on a deployment computer. I have no problems opening it on the development computer but on the deployment pc, it shows a different window with no options to edit the color map properties. I created an installer with Measurement Studio Installer Builder and included the necessary installers for the dependent runtimes.

On the development computer it looks like the following:
Color Map Editor.png
 
On the deployment computer, when opening the color map editor it looks as follows:
Color map editor deployment pc.png
If you click on one of the members on the left panel and click on Add the following error message shows up: "Constructor on type 'NationalInstruments.UI.ColorMapEntr' not found."
Error constructor on type.png

Solution

The Property Editor class is dependent on the NationalInstruments.UI.Design.dll, this .NET assembly needs to be deployed along the application to be able to launch the color map editor correctly on a deployment computer as it is not part of any of the runtimes. This .NET assembly can be found in the Global Assembly Cache (GAC) at the following location: "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\NationalInstruments.UI.Design". Add the .NET assembly to the files in the installer so that it gets deployed to the target pc in the directory where the application will be installed.
Another workaround is to install the .NET assembly in the GAC of the deployment computer. In the Related Links section, there is an article with useful information on how to install an assembly into the GAC.