I have an ASP.NET application running on a remote web server, and I just started getting this error:
Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'.
I parsed the code in a DLL, and it seems that the compiler is not optimizing the code correctly. (Note that Set is a class that implements a set of unique objects. It inherits from IEnumerable.) This line:
Set<int> set = new Set<int>();
Compiled to this line:
Set<int> set = (Set<int>) new ICollection<CalendarModule>();
The CalendarModule class is a completely unrelated class! Has anyone ever noticed .NET incorrectly compiling such code before?
Update # 1: This issue seems to be introduced by Microsoft ILMerge . We are currently studying how to overcome it.
# 2: . , , :
, , ( , , ) - .