Solution
A Web Service installer must include the necessary Additional Installers to run on a deployment PC. Follow the troubleshooting steps below to ensure that the installer has been properly configured.
- On the Additional Installers page of the Installer Properties, the following packages must be included:
- NI LabVIEW Runtime <version>
- NI System Web Server <version>
- Note: it may be necessary to uncheck Automatically select recommended installers and Only display runtime installers to view the required packages.
- The Application Web Server may not be properly included. To fix this:
- Open Notepad as an administrator.
- Search for Notepad in the Windows search bar.
- Right-click on the application and select Run as administrator.
- From Notepad, click File >> Open...
- Navigate to C:\Program Files (x86)\National Instruments\Shared\MDF\Manifests
- It may be necessary to change the file type to All files to see all documents.
- Open the file associated with NI Web Application Server.
- The file name will take the format of NI Web Application Server <version> {XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.xml
- Search for the line starting with <visibleForDeployment> and change this to true instead of false. The file should now resemble the image below.
- Save the file.
- Close LabVIEW if it's already open. Relaunch LabVIEW.
- Navigate to the Additional Installers page of the Installer Properties.
- Place a checkmark in NI System Web Server <version > and then the NI Web Application Server <version> should automatically be selected too.
- Rebuild the installer and deploy it to your PC.
Please note:
The above steps also apply to other components that are not properly included in the Additional Installers page of the Installer Properties (e.g. if you are missing the VISA Interactive Control from the Additional Installers page please find the corresponding .xml file and modify it as described above).
- Ensure that you're accessing the Web Service using the correct URL.
- By default, the Web Service will be published to the Application Web Server on port 8080.
- The URL should take the following format: 127.0.0.1:<port>/>Web Service Name>/<HTTP Method VI Name> or 127.0.0.1:<port>/<Web Service Name>/<HTTP Method VI Name>?<terminal input1>=<value>&<terminal input2>=<value>
- For example a Web Service called "Addition" that consists of a GET HTTP Method VI called "Add" that takes in two input parameters (x and y) will have a URL of 127.0.0.1:8080/Addition/Add?y=1&x=1