System.UnauthorizedAccessException When Opening NI Web Server Configuration

Updated Aug 19, 2026

Reported In

Software

  • LabVIEW NXG Web Module
  • G Web Development Software
  • SystemLink

Issue Details

I am unable to launch NI Web Server Configuration. When the application starts, it crashes and displays an Application Crash dialog.
The crash report contains the following error:

System.UnauthorizedAccessException: Access to the path 'C:\Program Files\National Instruments\Shared\Web Server\conf\defines.d\50_ldap-defines.conf' is denied.

The complete error message is very large and can be shown as the following window.

 
The behavior occurs consistently when attempting to open NI Web Server Configuration.

Solution

This issue can occur when the Windows account used to launch NI Web Server Configuration does not have sufficient permissions to access the required NI Web Server configuration files.

To verify whether the issue is permission-related:

  • Verify that the affected user account has access to the following file: C:\Program Files\National Instruments\Shared\Web Server\conf\defines.d\50_ldap-defines.conf
    • To check the file permissions, follow the next steps: 
      1. Right-click the file and select Properties.
      2. Go to the Security tab
      3. Click on the Advanced button
      4. Verify that the affected user account has the required permissions.
      5. If the Advanced Security Settings window cannot be opened or modified, the current account may not have sufficient permissions to access the file.
  • Compare the file and folder permissions for the affected account with those of a known working local administrator account.

To resolve the issue:

  1. Create a local administrator account and test launching NI Web Server Configuration using that account.
  2. Review domain security policies, group policies, endpoint protection software, and file access restrictions that could prevent access to the NI Web Server configuration directory.
  3. Work with the local IT team to identify permission differences if the issue only occurs with specific domain accounts.