Error 56 When Installing a LabVIEW Web Service

Updated Jan 23, 2025

Reported In

Software

  • LabVIEW

Issue Details

When I install my application that includes a web service, I get the following error at the end of the process when the installer tries to install the web service component:

Error 56 occurred at LabVIEWHTTPCient.lvlib:POSTMultipart.vi:1540001

Possible reason(s):

LabVIEW: The network operation exceeded the user-specified or system time limit.

Complete call chain:

LabVIEWHTTPCient.lvlib:POSTMultipart.vi:1540001

Installer.lvclass:install.vi

main.vi
 

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

  1. 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.
  2. Follow the instructions in the LabVIEW 2023 Q3 or later section to modify the default 10-second timeout.