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

Updated Sep 29, 2026

Reported In

Software

  • Measurement Studio

Issue Details

I have a Measurement Studio project that compiles and runs successfully on my development machine. I recently migrated the code to a new computer. Although no errors are reported during the migration process, I receive the following error when I attempt to build and run the application: "NationalInstruments.UI.WindowsForms.Led is unlicensed." 

Solution

This error is typically caused by an issue with the licensing file used by the project. To resolve the problem, consider the following steps:

  1. Verify that the Measurement Studio components are properly licensed on the new computer. You can view the installed Measurement Studio licenses in Visual Studio by navigating to Extensions -> Measurement Studio -> Licenses. If any of the licenses appear invalid, open NI License Manager and confirm that your Measurement Studio license is installed, activated, and currently valid. If necessary, reactivate the license before rebuilding and running the project. For further information, please visit the following website: What NI Software Licenses Are on My Machine?
  2. If your Measurement Studio licenses appear to be valid, the project's .licx file may not be up to date. In this case, refer to the article Archived: Measurement Studio 2012 for Visual Studio 2010 Help (Revision F) and follow the instructions provided to update the license file using the integrated tools. This process can help resolve licensing-related issues and ensure that all required components are correctly licensed.
  3. If the license file is still not updating correctly, you may need to update the .licx file manually. Detailed instructions for this process are provided in the article Archived: Measurement Studio 2012 for Visual Studio 2010 Help (Revision F). Following these instructions can help ensure that the project's licensing information is configured correctly.