Hi
Got an error if code runs in CIL. Call IL method with Job:
conreq = ['output reverse']
conret = Global::StrReverseIL(conreq);
public static server container StrReverseIL(container _str)
{
container conparm = _str,
conret;
new XppILExecutePermission().assert();
conret = Global::runClassMethodIL(classStr(Global), staticMethodStr(Global, strReverse), conparm);
CodeAccessPermission::revertAssert();
return conret;
}
System.InvalidCastException: Unable to cast object of type 'System.Object[]' to type 'System.String'.
at Global::strReverse(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26
at SysDictClass::invokeStaticMethod(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)
The table SysXppAssembly and XppIL was cleand up bevor running new CIL.
Any idea what have to be changed?
*This post is locked for comments
I have the same question (0)