question

Upvotes
Accepted

C# + RFANet 8.2.0.1 (RELEASE) - session.Acquire() fails randomly

Hi,

We have windows service using c# that uses RFA8_NET120_x64 (8.2.0.1). On some random days, session.Acquire("sessionName") call fails. We have 4-5 retry mechanism in place when acquiring session with a certain time interval in-between and all try attempt fails.

Most of the time, service restart works fine. So it doesnt look like code / config issue. Also same code + configs works fine on another machine.

Its not machine specific issue as well since we observed this failure on both machines randomly.

We can not enable logging on production servers but seems when trace logs are enabled - it starts generating log file only when we actually try to login - and this login call happens after session.Acquire() call.

We have try..catch around Acquire() call and can see below in our service log file when Acquire() call fails..

ErrorType : 1

ClassificationType : 4

SeverityType : 1


What else we can do to see what exactly is wrong when session.Acquire() fails?



#technologyrfa.net
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.

Hi @vishal.shashikant.butte ,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text on the left side of the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@vishal.shashikant.butte

Thanks for reaching out to us.

Typically, an application acquires a session at startup and releases it at the end.

However, from the problem statement, I assume that sessions can be acquired and released anytime while the application is running. This could trigger a problem in RFA.

This kind of problem requires the API support team to investigate the problem. If you are an RDC named user, you can contact the API support team directly via Contact Premium Support.


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.

Just to clarify - RFA layer on service is initialized at start and disposed off at stop - typical service / app behavior as you mentioned. Sessions are not being created / released multiple times while service is up.


When I say random failures - its failing to acquire sessions "sometimes" when service is restarted - but works if you try restarting couple more time may be..


Jirapongse avatar image Jirapongse vishal.shashikant.butte

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.