Menu

#158 SLPReg failing with error -19 but actually registering the service

v2.1
open
nobody
None
3
2017-05-05
2017-05-05
Peter Young
No

I have installed OpenSLP using openslp_2.0.0_0_x64.msi.
I am running the slpd from this install using an slp.conf that enabled it as a DA.
I have also downloaded and extracted the openslp-2.0.0 source.

My end game is to have spld running on a machine on a network to act as a DA and to have other apps behave as UA and SA.

I have written some test code based on SLPReg sample code to test SA reg/dereg behviour but I am seeing an odd issue. When I run my code the call to SLPReg fails with code -19 but the service is actually registered. I see a similar problem when calling SLPDereg to deregister the service (service is deregistered but I see error -19).
I can use the slptool to register and deregister services without seeing this error reported.

I would like to resolve this issue before I start working with the slpd on a different computer.

Any ideas as to why this should be?
Thanks in advance,

PS: Attached are the slp.conf and slp.reg files I am using. These are virtually the default files that come with openslp-2.0.0 with one change in the .conf file and the services 'enabled' in the .reg file:

2 Attachments

Discussion


Log in to post a comment.