License Exception Error When Using Measurement Studio with Visual Studio

Updated Feb 2, 2021

Reported In


  • Measurement Studio

Issue Details

LicenseException error occurs when using Measurement Studio functions in Visual Studio.

Caution: LicenseException was not thrown.
NationalInstruments.UI.WindowsForms.ScatterGraph is unlicensed.

I have verified that my license is activated in the NI License Manager, but I keep getting a license exception error when debugging. What should I do?


This phenomenon can occur in three major cases which are Design-time, Compile-time, and Run-time. For detailed each of troubleshooting steps, refer to Troubleshooting Measurement Studio Licensing Errors link.

If you have purchased a Measurement Studio license and completed activation, you may encounter errors due to two issues below.

1. The .licx file for your project is missing or incorrect. Refer to .NET Language Compilers and the .licx File for information on updating the .licx file content either manually or using Visual Studio-integrated tools. 
- For information on how to create a .licx file, refer to Creating an .licx File Without Visual Studio-Integrated Tools link.

2. You have a compile-only license, and your .licx file is not up-to-date. You need to update your .licx file manually. Refer to Manually Adding or Updating Entries in a .licx File for more information. 
- If you want to check your component license status, click the Licenses item on the Measurement Studio tab on the top menu bar.

The most important thing is a .licx file must exist within the project and contain the license information for the function you want to use. Otherwise, you will continue to receive LicenseException errors.