Solution
This error will sometimes occur when you install new NI software and don't restart your system. A simple restart of your computer will often fix it. If you are working on something where a restart isn't feasible, you can try manually running the NI Service Locator by following the steps below for your operating system. If the issues persist after these steps, see the Firewall section below.
Windows 10
1. Log in as an administrator or as a user with administrative privileges
2. Right click on the Windows icon (Start button) and select Control Panel
3. Select System and Security»Administrative Tools»Services
4. Right-click on NI Service Locator or NI System Web Server and select
Stop5. Wait a minute until the service has stopped, and then right-click and select
Start6. Restart LabVIEW and see if you still get the error
Windows 7
1. Log in as an administrator or as a user with administrative privileges
2. Select Start»Control Panel»System and Security»Administrative Tools»Services
3. Right-click on the NI Service Locator or NI System Web Server and select
Stop4. Wait a minute until the service has stopped, and then right-click and select
Start5. Restart LabVIEW and see if you still get the error
Windows 2000/XP
1. Log in as an administrator or as a user with administrative privileges
2. Select Start»Settings»Control Panel»Administrative Tools»Services
3. Right-click on the NI Service Locator or NI System Web Server and select
Stop4. Wait a minute until the service has stopped, and then right-click and select
Start5. Restart LabVIEW and see if you still get the error
Firewall
If, after trying the steps above for you operating system, the issue persists or you see a message similar to:
The NI Service Locator service on the local computer started and then stopped. Some services stop automatically if they have no work to do, for example, the performance logs and alerts service.
This suggests a firewall issue. To allow NI Service Locator to run with a personal firewall running, the following need to be added to your personal firewalls exceptions/safe list/program permission properties:
-
NI Service Locator (C:\Program Files (x86)\National Instruments\Shared\nisvcloc.exe)
-
NI Example Finder (C:\Program Files\National Instruments\Shared\Example Finder\1.0\BIN\NIExampleFinder.exe)
-
LabVIEW (<LabVIEW>\LabVIEW.exe)
You can also try deleting and remaking the Service at the Command Line. This is a workaround as once the Service is restarted this way it can be turned off again, which points again to a Firewall issue. The steps to do this are here:
- Open cmd.exe and run the command: sc delete nisvcloc
- Restart the computer
- Open cmd.exe and run the command: sc create NiSvcLoc binPath= "C:\Program Files (x86)\National Instruments\Shared\niSvcLoc\nisvcloc.exe -s" start= auto DisplayName= "NI Service Locator"
- Open Services Viewer and locate the NI Service Locator and Start it.
- Try opening NI Example Finder and opening an example.