LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web Server Launch Error on Compiled LabVIEW App

This is weird.  I have a program I wrote as part of a larger project and I want to compile it.  Compiling went smoothly as always, but now for some reason I get this error message whenever I launch the executable:

"The Web Server cannot start.  Is the Web Server port already in use?  Try to start the Web Server on another port.  LabVIEW: The specified network address is currently in use."

I've looked through the block diagram and there is no reference to any network code to speak of and certainly nothing that has to do with a web server.  I can click on "ok" in the error dialog box and everything runs fine, but it is still an annoyance for every time I want to run the code.

Any thoughts?
0 Kudos
Message 1 of 6
(2,887 Views)
Hi!

I just made a blank project with a simple add two numbers code, compiled and ran that and I get the same message prompt from that.  There is some setting in LabVIEW that is possibly checked somewhere that I am neglecting.
0 Kudos
Message 2 of 6
(2,886 Views)
Hi,

Please check if you web server is enabled. You can do this by going into Tools->Options-> Web Server:Configuration. If the enable web server box is checked, please uncheck it. Good luck!
Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 3 of 6
(2,871 Views)
hmmm.... did that work?

Lets see:
* Disabled the web server
* Re-compiled my test application
* Ran the test application
* Results: no warning

* re-enabled the web server
* Ran the previously compiled test application
* Results: a warning

So based on the two results, my program is trying to start the same web server that the LabVIEW Development environment uses.  When the LabVIEW Development environment has its web server enabled, then my compiled program's web server throws a warning/error regarding the usage of the port.

So I guess I'm left with this question:  Why does my application call some web server within the NI LabVIEW runtime when it is not referenced anywhere in my code?  Unnecessary components loading, especially ones that expose network services, make me uncomfortable.
0 Kudos
Message 4 of 6
(2,867 Views)
This message can appear when the executables use the same port as LabVIEW for web server. It can also be because of a setting in your INI file.
Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 5 of 6
(2,849 Views)
Nicker, the ini file (config file for the exe) is generated to match the settings of your LabVIEW environment when the application was compiled.  Ergo, if you had the webserver enabled in LabVIEW when you created the exe, the exe will also launch a webserver.
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 6 of 6
(2,760 Views)