question

Upvote
Accepted
16 1 3 6

Run API code from service

Hi all, When I run the API code from service, the redi+ application disconnected and it seems that the Redi API blocked that access.

Please advice,

Yakir Orcom

apiredi-apiService
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @yakirhersko,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

-AHS

Upvotes
Accepted
32.2k 40 11 20

Hello again @yakirhersko,

We have discussed the approach and have confirmed that:

REDI API cannot be used from a Windows Service. It needs to be run by a Windows user where it is coupled to the user’s session, that must be active and running in the REDI application.

Hope this clarifies,

-AHS

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
32.2k 40 11 20

Hello @yakirhersko,

For us to be able to help, please try to give us as much information as you can, describe in detail what are you doing with REDI API, if you are able, please include the code.

Thanks,

-AHS

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
16 1 3 6

When I use the API from windows service, the redi+ application disconnected and it seems that the Redi API blocked that access. for example, The Redi+ application disconnect in the following line:

if the code access to any objects of RediLib.dll the application close.please try run simple code as windows service.Thanks,YakirOrcom
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
32.2k 40 11 20

Hello @yakirhersko ,

Are you running C#? Windows version? Framework version?

Is it one of TR included examples, or your custom code?

Is this same code running successfully as console app? windows app? And only choking up as service? Or it has started out as service you have not tried running it otherwise?

Is service a new project "windows service", or using a service wrapper, if a wrapper, which one?

Any other useful info to understand and reproduce exactly what you are seeing?

If possible, please zip and attach to the question.

We aim to help

Thanks

-AHS

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 2

Hi all,

Yakir has asked for someone to call his colleague, Hanan (phone number provided by email) to answer these queries and explain. I will forward his email to Redi API distribution list.Thank you very much and best wishes,

Arabela

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.