It seems like the startup VI of a web service does not run when in an executable. See the attached example.
When I start the web service from the project (right click on WeatherMonitor >> Start), the startup VI (Startup Test.vi) runs. I can tell it runs because it writes a file in My Documents called WS-test-debug.txt. However, when I build it into an executable (right click on "Weather Simulator (Server)" under build specifications >> Build and >> Run), the file is not written/updated.
I think this behavior only happens in LabVIEW 2020 and not earlier. I'm guessing it's because of the new NI Web Server, which is different from the old Application Web Server (I think?). I'm wondering if this is a bug in 2020 or if I am doing something wrong?