Licensing Error "NationalInstruments.UI.WindowsForms.Led is Unlicensed" after Migrating Project

Updated Jun 1, 2023

Reported In

Software

  • Measurement Studio

Issue Details

I have a Measurement Studio project which compiles and runs correctly on my development machine. I've migrated this code to a new computer, and no errors appear, but when I try to compile and run the code, I receive the following error: "NationalInstruments.UI.WindowsForms.Led is unlicensed." 

Solution

This error is caused by an issue with the licensing file being used by the project. Some steps to take to resolve this issue are:
  1. Verify that Measurement Studio elements are correctly licensed on your new computer. You can view licenses for Measurement Studio in Visual Studio at Extensions -> Measurement Studio -> Licenses in the development environment. If these licenses appear invalid, check in NI License Manager to ensure that your license for Measurement Studio is currently valid.
  2. If your licenses appear valid in Measurement Studio, your .licx may not be updated. Try following the steps in the Measurement Studio Help to update your license file using integrated tools.
  3. If your license is still not updating properly, you may need to manually update your .licx file; this process is described in the Measurement Studio Help.