取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 6 条)
3,092 次查看
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 项奖励
2 条消息(共 6 条)
3,091 次查看
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 项奖励
3 条消息(共 6 条)
3,076 次查看
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 项奖励
4 条消息(共 6 条)
3,072 次查看
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 项奖励
5 条消息(共 6 条)
3,054 次查看
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 项奖励
6 条消息(共 6 条)
2,965 次查看