question

Upvotes
Accepted
26 10 16 36

EMA C#: There is no user credential available for enabling session management

Do we still support V1 authentication (machine id, password, client id/appkey) on EMA C#?
Looks like it works for the client id and client secret, but if I change it to the V1 combination it fails with the message "There is no user credential available for enabling session management":
(The code is based on example cons113)

OmmConsumerConfig config = new();

config.ConsumerName("Consumer_4")

// OK:

.ClientId("GE-xxxxxx")

.ClientSecret("xxxxxx");

// Failed below:

//.UserName("GE-A-xxxxxx-x-xxxxx")

//.Password("xxxxxx")

//.ClientId("abcdef123456a2efe3fa2bdcd");

consumer = new (config);

consumer.RegisterClient(new RequestMsg().ServiceName("ELEKTRON_DD").Name("IBM.N"), new AppClient());

Thread.Sleep(900000); // API calls OnRefreshMsg(), OnUpdateMsg() and OnStatusMsg()

ema-api
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.

It works for V2 account, but failed for V1 account (use a difference account).

1 Answer

· Write an Answer
Upvotes
Accepted
84.6k 287 53 77

@Frederic

Thank you for reaching out to us.

RTSDK C# (EMA and ETA) only supports V2 authentication.

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.