Version 9 Error – "Method not found: '!!0[] System.Array.Empty()'"

Scott DurowDyn365CE7 years ago76 Views

I recently found an issue with Dynamics 365 Version 9 where a call to ITracingService.Trace(message) from inside a plugin caused the following exception:

System.MissingMethodException: Method not found: '!!0[] System.Array.Empty()'

Or

System.MissingMethodException: Method not found:
'System.String System.String.Format(System.IFormatProvider, System.String, System.Object)'.
 

To resolve, I simply needed to replace it with TracingService.Trace(message,null);

This issue is caused by compiling the Plugin using the 4.6.2 version of the .NET framework – so by compiling against 4.5.2 the exception no longer occurs.

Hope this helps!

 

Original Post https://develop1.net/public/post/2017/12/20/Method-not-found-!!0-SystemArrayEmpty()

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
August 2025
MTWTFSS
     1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
« Jul   Sep »
Follow
Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...