Anonymous Security Token Error When Installing .NET Version Required by LabVIEW

Updated Feb 7, 2023

Reported In

Software

  • LabVIEW

Issue Details

When I deploy an installer created in LabVIEW, a dialog indicates that the .NET framework needs to be installed first, when I click continue to install the .NET framework, it fails with the following message:

Cannot open an anonymous level security token.

netinstaller.png

Solution

The security token error can be caused by an issue between Windows and the .NET Framework installer and it is not specific to the NI software, in this case LabVIEW, being used. Trying the following steps can help clearing out the error:

1. Open the Windows Control Panel.
2. Select System and Security>>Administrative Tools.
3. In the list, double-click Component Services.
4. Expand Component Services in the left pane of the window and then expand Computers.
5. Right-click My Computer and select Properties.
6. Go to the Default Properties tab and ensure the Default Authentication Level is set to Connect and Default Impersonation Level is set to Identify.

dcom.png

  • Verify the antivirus or firewall software is not blocking the installation of the .NET Framework.

Additional Information

The LabVIEW installer prompts you to install the .NET Framework as it is needed in the system to use NI software, as explained in: Why Do I Get a Prompt to Install the .NET Framework Before Installing NI Software?

You can follow the instructions on this Microsoft article: How to: Determine which .NET Framework versions are installed, specifically the Detect .NET Framework 4.5 and later versions and Detect .NET Framework 1.0 through 4.0 sections, to determine if a .NET framework version is installed in your computer.