Hi
Any input is appreciated for this one. I have a packingslip posting routine - which works okay - when triggered from a botton in Ax.
But when the same code is executed in a wcf service call - this cast error orccurs
urn:uuid:c3566c62-b0af-405a-a019-97b4650f3d79http://www.w3.org/2005/08/addressing/anonymouss:SenderUnable to cast object of type 'Dynamics.Ax.Application.Query' to type 'Dynamics.Ax.Application.SysQuery'. at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)
I have tracked the error to this simple line:
Sysquery query;
Query = new query();
It is curious that if use query straight - no cast error occours - but this is not an option since the query must be used in a sysqueryrun class - which should be passed to the regular salesform letter classes.
I have tried full application compile + full cil compilation afterwards which should solve thise errors -but not here.
regards
Søren