Reputation: 3097
I'm receiving this error message (self translated from spanish) ...
"Could not convert some or all identity references"
May be (see comments)
Some or all identity references could not be translated
... when invoking my own custom services published in AX 2012. It's a test service, very simple with only one public method only for testing connectivity and security.
Service was working fine and started giving this message after a database backup recover into the development application to test with real data.
I suspect some kind of security problem but I'm unable to find it. Any idea will be helpful.
Upvotes: 1
Views: 1226
Reputation: 3097
I finally find the problem. When you instance the CallContext
object you need to specify the domain in the LogonAsUser
member. If only user specified you get the error message of the original question. This way it works:
CallContext context = new CallContext();
context.Company = "COMPANYCODE";
context.Language = "es";
context.LogonAsUser = @"DOMAIN\USER"; // Domain is important!
Thanks!
Upvotes: 2