07-29-2019 10:15 AM
Hi,
I have made a device server based on “TCP Named Service.lvproj” example shipped with my LabVIEW 2017. The server has a thread that communicates with a physical device and a thread that handles TCP requests from external client programs. During initialization, the TCP thread starts Named Service, exactly like in the example, and listens to the requests.
The program works flawlessly on a development machine, both in VI and executable. It runs perfectly on most of deployment (no LabVIEW installed, just RTE) machines, but on some of them (about 1/3 of the amount we tried) it gives Error 63 as soon as it tries to start Named Service.
Weirdest thing is that the error can start or stop after some Windows updates.
What does not help (I did search “Error 63” related forum topics and nothing helped so far):
What helps:
I strongly suspect that there is nothing wrong with the code itself, rather Windows blocks TCP service/port created by LabVIEW Run-Time on some computers for some reason.
Any ideas what can be done to allow LabVIEW RTE to start TCP Named Service when Error 63 appears?
Thank you!
Solved! Go to Solution.
08-02-2019 12:19 PM
08-02-2019 02:06 PM
...Any ideas what can be done to allow LabVIEW RTE to start TCP Named Service when Error 63 appears?
Thank you!
Check the Windows System log.
Ben
08-02-2019 07:30 PM
Cy_Rybicki,
Restart does not help.
I start server program and get the error immediately, as soon as Create Listener.vi runs inside. No client is running at this point, so no connections. On the development machine I can run NI Service Locator and see a port assigned to created Named Service. On problematic machines no port is assigned, so basically Named Service is not running. The problem, I think,is that Windows refuses to register this TCP service.
08-03-2019 03:40 PM - edited 08-03-2019 03:41 PM
Have you checked that the Service Locater Windows Service is properly installed and started on the affected machines? With LabVIEW Full installation this always gets done but with simply installing your compiled executable it may not, depending on what runtime engine and additional packages you install with the application!
08-05-2019 12:10 PM
rolfk,
this is looking close to solving my puzzle.
On problematic machines, NI Service Locator is not running.
This is what I have on a machine with the problem:
I am not sure what "PSP" means, but it is not nisvcloc.exe.
http://localhost:3580/dumpinfo? returns error page on RTE-only machine.
On "good" machines I see NI Service Locator in the list of services.
Now, correct question, the one I should have started with:
how to install NI Service Locator or start it if it is not running???
I found this topic: https://forums.ni.com/t5/LabVIEW/kNIFarmResultServerNotResponding-LabVIEW-Error-Code-123011/m-p/2575...
The instructions are:
***********
Look for 'C:\Program Files (x86)\National Instruments\Shared\niSvcLoc\nisvcloc.exe'. If it doesn't exist, stop here and let me know.
Navigate to 'Start -> All Programs -> Accessories -> Command Prompt' and right-click to run as Administrator.
Enter the following command:
sc create NiSvcLoc binPath= "C:\Program Files (x86)\National Instruments\Shared\niSvcLoc\nisvcloc.exe -s" start= auto DisplayName= "NI Service Locator"
Reboot your machine, and see if the NI System Web Server is running.
*****
I do have 'C:\Program Files (x86)\National Instruments\Shared\niSvcLoc\nisvcloc.exe'. When running the command above I get "the service is already registered".
In Task manager - Services I see NiSvcLoc in the list but it is stopped and cannot be started - error says Operation could not be completed. Access is denied.
I guess I will dig deeper into how to start NiSvcLoc. Maybe has to do with antivirus during RTE installation.
08-06-2019 03:03 PM
I solved the problem by deleting and remaking NI Service Locator.
The steps to do this (from here https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6fLSAS&l=en-US😞
My main problem was that NI Service Locator was not in the list of available services, therefore I did not know that it has problem starting. After remaking, it appears in the list and can be started.
Thanks everyone and, especially, rolfk for pointing out to Service Locator.
Why, in some cases, the service is not installed properly during RTE installation remains an open question.