I am working on a C# code running on .NETCF 3.5 on WindowsCE 6.0 that is throwing MissingMethodExceptions for Func`2<> during runtime. The code parts where the exception occurs is random.
The weird thing is, this happens when you already use the application for a while AND where definitely many calls to Func`2 already happened. (eg. via IEnumerable.Select() or .Where()) It seems that this behaviour starts if you just load enough Types during the lifetime of the application such that the sum of assembly file sizes exceeds ~18MB. But there is enough memory (RAM) available on the device to load the Type.
Also activated LoaderLogging but to no avail. It only shows me a TypeLoad error for Func`2.
As I ran out of ideas: What could be the cause of such errors?
Unfortunately I cannot share any code because it is 1) property of the company I work for and 2) many ten-thousand lines of code.