Solution
LabVIEW installers have a 10-second default timeout when publishing a web service. To address this, you can reduce the size of the web service or:
For LabVIEW 2023 Q3 or later
Download the NILVWSPostInstallerScript.ini attached to this article and place it in the following path:
- LabVIEW 32-bit ->C:\Program Files (x86)\National Instruments\Shared\LabVIEW Run-Time\20XX\LVWS
- LabVIEW 64-bit -> C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\20XX\LVWS
The file has the form below and the key RegisterStandaloneWSTimeout can be edited to modify the the default 10-second timeout.
[NILVWSPostInstallerScript]
RegisterStandaloneWSTimeout=30000
The time must be specified in milliseconds. For example, in the script above, "30000" is the new 30-second timeout for the LabVIEW Web Service.
Note: If the NILVWSPostInstallerScript.ini already exists, just add the [NILVWSPostInstallerScript] section and RegisterStandaloneWSTimeout key in the ini file.
If you want to deploy the file along with your application you can add it to your installer deployment in the corresponding path, make sure to adjust the path if you upgrade your LabVIEW version later as the path is specific for each runtime version.
For LabVIEW 2023 Q1 or earlier
- Replace the NILVWSPostInstallerScript.exe located at the path mentioned above (LabVIEW 2023 Q3 or later section) with the new NILVWSPostInstallerScript.exe included in the ZIP files attached to this article. In the 32-bit and 64-bit zip files, you will find the LabVIEW EXE for LabVIEW versions from 2015 to 2023Q1.
- Follow the instructions in the LabVIEW 2023 Q3 or later section to modify the default 10-second timeout.