Solution
The error message indicates that the client, the web browser in this case, cannot find the published web page. There are numerous potential root causes, including an error in the URL being used or a conflict with the port assigned to the web service. You can check the following to try to fix the connection issue.
- Confirm the correct URL is being used.
1. The web VI's public URL can be confirmed in the LabVIEW project. You can right-click the appropriate HTML file within the Public Content folder of the Web Service in the LabVIEW project and select the Show Public URL... option:
Take note of the IP address and path to the HTML file. Omit the port shown here, instead confirm the port as explained in the next step.
2. Right-click the Real-Time Application build specification in the LabVIEW project, select Properties and confirm the port being used in the Web Services page:
Make sure the public URL shown in the LabVIEW project, including the port configured in the Web Services page of the build specification, is the one being used to try to access the web VI.
- If the correct URL and port are being used in the browser, the issue might come from the Application Web Server in the cRIO using the same port as the one configured in the stand-alone application. You can change the port being used in the stand-alone application or the one configured for the Application Web Server. Two ways you can confirm which port is being used by the latter and change it if necessary are:
- Using the Web Configuration in NI MAX. Right-click the cRIO controller in NI MAX and select Web Configuration:
The page opened by the Web Configuration option needs to be opened in Internet Explorer. In this configuration page you can change the port assigned to the Application Web Server:
- Web Service Startup VI Configuration: The problem happens when the Web Service Startup VI is the same as the one used by the RT EXE. Web Service startup VIs are intended to be used when the Web service is run stand-alone. Check this link. When web services are included in a build specification, there is no need to use startup VIs for the web service.