Application Web Services Deployment Failure in LabVIEW Project

Updated Dec 4, 2023

Reported In

Software

  • LabVIEW

Issue Details

I am trying to publish my web service configured in a LabVIEW project using the Application Web Server, but I am getting this error:

The Web Services deployment failed. An active NI Application Web Server was not detected on the target. Verify that the NI Application Web Server is installed on the the target, is enabled, and has completed startup.

Web Server Error.png

Solution

This error can appear when the Application Web Service, or one of its dependencies, is not running correctly. You can follow the next steps to try to fix this issue:
 
1. Go to the Windows Services, and check the status of the NI services, specifically the Application Web Server:
 
services.png
 
2. Right-click the NI Application Web Server entry and select Properties>>Dependencies.
 
image.png
 
3. Check the status of the dependencies in the Windows Services and make sure all of them are running correctly, otherwise you can get "The dependecy service or group failed to start" error when trying to start the NI Application Web Server service.
 
4. If the Application Web Server or any of its dependencies is not running, try right-clicking the affected service and select Start.
  • If this fails check the Windows Event Logs by pressing <Windows+R>, typing  eventvwr and clicking OK, then go to Windows Logs>>Application. The logs here can provide further information on why a particular service is not able to start successfully. For example, the Event Logs can point to an error in one of the configuration files for the problematic service:
nisysweb error.png

In this case, correcting the mentioned line enables the System Web Server to start correctly, which in turns will allow the Application Web Server to start successfully.
 
5. Once the Application Web Server and its dependencies are running, try deploying the web service again.

Additional Information

The NI Web Server is the newer Apache-based Web Server that is meant to replace the aging Application Web Server and System Web Server. This NI Web Server is the default for LabVIEW starting in the 2020 version. For more information on how to configure the NI Web Server, refer to: Setting Up the NI Web Server for Web Services (Windows).