LabVIEW Web Service Not Started in Deployed Application

Updated Oct 30, 2018

Reported In

Software

  • LabVIEW
  • LabVIEW Application Builder Module

Issue Details

I developed a Web Service in my LabVIEW project, which I want to deploy, per: Publishing a Web Service (Real-Time, Windows).
I configured the executable/installer according to the LabVIEW help: Including a Web Service in a Stand-Alone Application or Installer (Real-Time, Windows)
When I run the LabVIEW executable or install my LabVIEW distribution (which should start the Web Service too), I notice that the Web Service is not started.
I see the following two errors:
 

The NI Application Web Server service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.
 
Error -67400 occurred at Installer.lvclass:install.vi
Possible Reasons:
LabVIEW: (Hex 0xFFFEF8B8) LabVIEW Web Services: Failed to start the Application Web Server.

Solution

  1. (If using an installer) Make sure you are including the NI System Web Server in your application Installer under Additional Installers.

  2. Make sure there is no firewall or anti-virus software blocking the installer/executable.
  3. Make sure you are using the administrator account of the computer, and that the installer/executable is running with administrator privileges (right click > Run as Administrator).
  4. Try force reinstalling the LabVIEW Run-Time Engine downloading the software again from ni.com/downloads and using the following process: Force Reinstall Non-Working or Corrupt NI Software
  5. Refer to the following document for more information on the NI System Web Server starting and stopping: Configure Web Application Server Disabled in LabVIEW Options

Additional Information

LabVIEW does not allow an executable to be built without a Startup VI. When using Web Services with Executable applications (EXE) they start running when the application executes, and stop when the application is closed. If you would like your Web Service to start without the need of a startup application (EXE), you can use an installer instead. You can find a handy table with the explanation of the different Web Services behaviors in the LabVIEW help: Publishing a Web Service (Real-Time, Windows).

WAS THIS ARTICLE HELPFUL?

Not Helpful