Hello,
Using Powerbuilder 2022 R2 2819, Chilkat-9-5-0, Windows 10 Pro 64 bit, nssm
In normal client/server application, I could use Chilkat, and unlock it using loo_Glob.ConnectToNewObject("Chilkat_9_5_0.Global"). No issues.
When I try to use the same way to connect this ActiveX from a windows service application, it fails.
The App is developed using PB 2022 R2. Installed as a service in the same machine.
Chilkat installed in the same machine using the batch file provided. Since the app is 32 bit, I installed the activex using the register_x64.bat. Since it failed, I tried with register_win32.bat. Both failed. I used nssm to install and run the service application.
I registered the activex using register_x64.bat. Registration succeeded. I verified it running the client/server application. But the windows service application fails to unlock the bundle.
Then I unregistered the 64bit version, registered with register_win32.bat file. Registration succeeded. Here also the windows service application failed to unlock the bundle.
IS it possible to access a third party ActiveX from a windows service in the same way that we used to access the ActiveX in a client/server application?
Or Am I missing something?
Happiness Always
BKR Sivaprakash
I don't think register_x fails. ActiveX installed with register_x, works find in client/server application. But the windows service app, couldn't find the same activeX.
Nevertheless I tried installing the activeX in Administrative mode. No luck.
"Since the app is 32 bit, I installed the activex using the register_x64.bat. Since it failed, I tried with register_win32.bat. Both failed."
Based on the above statement I thought that registration failed... Anyway why did you first tried to use x64 register batch file? Also what user is running your service?
Andreas.
Actually registration succeeds. It fails when I tried to unlock the bundle in the service application.