Failed to Load Shared Library Nidiscsvc.dll When Deploying to RT Target Error

Updated May 30, 2018

Reported In


  • CompactRIO Controller
  • CompactDAQ Controller
  • CVS-1454


  • NI-RIO
  • NI CompactRIO

Operating System

  • NI Linux Real-Time

Issue Details

I am trying to deploy my application to my RT target using a LabVIEW project and it complains about a library missing. Even though this erros appears, it allows to deploy and the application works correctly. The error states:

Errors were detected in the target log when connecting to the target: 

LabVIEW:  Failed to load shared library niDiscSvc.dll. Ensure that the library is present on the RT target. Use MAX to install NI software or FTP to transfer custom libraries to the RT target. 

Select "Apply" to ignore these errors and continue with deployment.


How can I solve this issue?



This dll is part of the NI System Discovery. You can try a few things:
  1. Locate the Windows Services on your computer and start or restart the service called NI Network Discovery
  2. Make sure that the target is compatible with the version of CompactRIO (if applies) and this information can be found in the readme file of the version you are using.
  3. Reinstall NI System Configuration on the target.
  4. Format and reinstall all software on the target.
  5. Locate the DLL in C:\Program Files (x86)\National Instruments\RT Images\NI Network Discovery\<software version on RT> and use FTP or WebDAV to load the DLL on the target to the following path c/ni-rt/system