LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Srvr.ServiceName does not register with NI Service Locator

I have an app that sets it own Service Name. It works when run from the development environment and I can verify that the NI Service Locator
captured the new registration. If I build an exe the new Service Name does not get registered. Any Ideas? Thanks.
0 Kudos
Message 1 of 4
(2,596 Views)

Hi sachsm,

 

How are you setting the Service Name of your app?

0 Kudos
Message 2 of 4
(2,577 Views)

I am trying to use the srvr.ServiceName Property.  I am thinking that my problem may stem from the application refnum that has this property.

From the development environment this is the main app refnum but from a exe built from a project I am getting the app refnum by using the vi

property called OwningApp. But unfortunately this does not seem to work and I do not know why.  The only technique so far to work is to

use the create tcpip listener function.  This registers any ServiceName you give it and it also works inside an exe.  The only problem is that I do not

really want to create such a listener.  I only want to have each exe instance (Yes I am planning on having 3 or 4 instances of the same exe running on a single machine) to be able to have its own viserver ServiceName.

0 Kudos
Message 3 of 4
(2,573 Views)
is it possible for you to post an example of what you are trying to do?
0 Kudos
Message 4 of 4
(2,558 Views)