question

Upvote
Accepted
16 0 0 4

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 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
23k 22 9 14

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 5.0 MiB each and 10.0 MiB total.

Upvotes
23k 22 9 14

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 5.0 MiB each and 10.0 MiB total.

Upvotes
16 0 0 4

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 5.0 MiB each and 10.0 MiB total.

Upvotes
23k 22 9 14

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 5.0 MiB each and 10.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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea