We saw some cases when loading a perfect valid assembly, CLR may throw BadImageFormatException occasionally.

In one particular case, we discover that it is caused by anti-virus scanners. Turn off the "Protection Against Unknown Threats" feature in the anti-virus engine and the problem disappears.