简体   繁体   中英

Error response from AX 2012 AIF Services “Could not convert some or all identity references”

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.

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM