Method not found: ‘!!()[] System.Array.Empty()

By | February 5, 2018

If you ever come across the error: “Method not found: ‘!!()[] System.Array.Empty()” in V9 it is likely because of the fact that you have to ‘update’ your tracing for V9.

Array empty

Before V9.0 you had the possibility to add tracing by just adding the message and discarding the params object. So you could add tracing like this:

It seems that since V9.0 the params object is required although VS does not complain if you don’t add it, but upon the first tracing rule inside your code, the system will throw the above error.

Adding null as parameters does not seem to work for me but the following does:

This might save you some time troubleshooting the error.

Leave a Reply

Your email address will not be published. Required fields are marked *