Technical Bulletin: Cannot re-establish a session using the Remote API

 

Initial publication: October 12, 2011
Last reviewed on: October 12, 2011
Last updated on: October 12, 2011

When using the Remote API, it is not possible to re-establish a session. If one attempts to due so, an error occurs. Re-establishing a session is useful when adding state to a stateless application or switching between multiple sessions frequently.

Symptoms

The following code snippet, which is a trivial illustration of how to re-establish a session, fails with this exception message: There is no implementation for the ISessionManager endpoint

var session = Session.EstablishSession(new Credentials(UserName.Text, Password.Password));
Session.Rebind(session.Token);

Resolution

Apprenda has issued HotFix #2424 to address this problem for customers running the affected versions listed below. This problem has since been resolved and does not occur in later versions. Customers can apply the HotFix or upgrade to the next SaaSGrid release. 

Should I apply the HotFix?

Customers should apply the HotFix only if all three conditions apply:

  • are running the affected versions of SaaSGrid (see below), and
  • use the Remote API in the manner described at the top of this article, and
  • cannot use the Manual Workaround (see below) due to its limitations

What does the HotFix Entail?

The fix involves updating a DLL, specifically SaaSGrid.API.Remote.dll in your local installation of the SaaSGrid SDK, located on most machines at C:\Program Files (x86)\Apprenda\SaaSGrid\SDK\API Files and then re-building the application(s) using the Remote API feature.

Is there a Manual Workaround?

In many use cases, it is possible to establish a new session for each request or set of requests made by the same authenticated user, even though it may not be ideal to do so due to architectural or performance implications.

How do I obtain the HotFix?

Contact Apprenda Client Services (support@apprenda.com) and we will provide you with HotFix #2424.

Applicable Component(s)2424:

  • SaaSGrid SDK

Affected Version(s):

  • 1.8 (all versions)
  • 1.9 (all versions)
  • 2.0 (all versions)
  • 2.1 (all versions)
  • 2.5.0
  • 2.5.1
  • 2.5.2
  • 2.5.3

2424