简体   繁体   English

AX 2012 AIF服务的错误响应“无法转换部分或全部身份引用”

[英]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. ...当调用我自己在AX 2012中发布的自定义服务时。这是一项测试服务,非常简单,只有一种用于测试连接性和安全性的公共方法。

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. 当您实例化CallContext对象时,需要在LogonAsUser成员中指定域。 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! 谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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