Hi everybody,
I am attempting to debug a method I've created and I am getting a very weird error.
I have the following lines of code
DateTime time = GetParameterDateTime(parameters, "ttDate");
DataTable dt = this.GetResources(preferences, time, instr_type);
messageText = database.GetFormattedReturn(dt, returnType);
(I originally just had messageText longer call without extra variables, but decided to trace it more). At the top of the GetResources method I have a break point.
However, immediately on the second line I'm getting the following exception:
System.MissingMethodException: Method not found: '!!0 Siriusware.Library.Functions.Smallest(!!0[])'.
First of all, the Library.Functions does indeed have public static method Smallest. I re-built that project and re-added that library into test project, but I still got that error.
Secondly, why I am getting that error on the line which doesn't even reference this Smallest method? It doesn't even go inside GetResources method.
So, I am baffled with this error and not sure how to resolve.
Thanks in advance.
UPDATE. I re-built the other project again, then re-added all the references and now the problem is fixed.
If it's not broken, fix it until it is.
My Blog