What specifically causes the exception with the message “Bad IL range”?
I’ve gotten an error report from a customer of mine with this message, but I can’t see the exception type. Googling on this text yields very different results, and I suspect this is something pretty low level in .NET/C#, which can occur in many different situations. I assume IL is “Intermediate Language” in this context.
So what exactly causes this exception, and what may the common underlying reasons for it to happen be?
Exception type is
BadImageFormatException, it’s thrown when an assembly is corrupted (complete exception message should explain which assembly). There could be many and various reasons for this to happen: viruses, hardware failure, software bugs or a wrong action taken by the user. The exception message and the Fusion log property will contain more information about what kind of error it represents.You can’t do much about that, if the problem persists probably he needs to reinstall your application or .NET Framework, if it did happen just once then he should check for viruses or do a serious hardware test.