Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
We have this error in .NET Api
App already open in different mode [LOCERR_APP_ALREADY_OPEN_IN_DIFFERENT_MODE]:
We have opened the app without data, but we closed the app (app = null) how to open it back in with data mode?
It seem that app stays open somewhere
Thanks Jean-Philippe
Hi JP,
just to set that app to null, changes nothing on the engine side, because the websocket connection behind are not closed.
You can try to displose the hub / location and hope that the .net will close the connection.
What you can also do is to use the Logout API and than make a complete new connection to the hub.
bye Konrad
And even if you close the websocket connection the Engine will keep the session alive until the timeout period hits before we dispose of your app from memory just in case you would connect again so we can preserve selection state.
If you can supply a "identity" param in the Location connection that will create a new engine session and you can then call openDoc again, this time with data.
How can add the identity parameters I can't see it in the location properties
Thanks
Hi JP,
try again, with code:
ISession session = null;
if (EngineConnection.ExtraSession)
session = Session.Random;
else
session = Session.WithApp(appIdentifier, SessionType.Default);
var hub = CurrentLocation.Hub(session, true);
If you use the first Path with session = Session.Random, you should get a new session.
bye Konrad