Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

CIL generation warning

$
0
0

Hi,

In AOT class, i am calling .NET webservice method like shown below.

--------------------------------------------------------------------------------

ret = webClient.MyMethod("string", byRef Param1, byref param2,  byref param3);

--------------------------------------------------------------------------------

It throws below Severe warning. How to get rid of it?

Severe Warning: .NET instance method MyServiceProject.MyService.WS_PortClient.MyMethod, with byref parameters, is not found during CIL generation. The code in  method MyClass.classMethod will throw an exception during run time.

--------------------------------------------------------------------------------

This method call works fine as expected. I don't know why this warning is thrown during CIL compilation. Is there any different syntax i need to use while passing byRef parameter to .NET webservice method?

Has anyone faced this before? Please guide.

Thanks


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>