'Read out of bounds error when using ilspy

When using Ilspy I am getting a Read out of bounds error:
System.BadImageFormatException: Read out of bounds.在 System.Reflection.Throw.OutOfBounds() 在 System.Reflection.Metadata.BlobReader.ReadInt32()
How should I address this?
Solution 1:[1]
Your file is not a valid assembly or the architecture bitness is invalid (what is for decompiler most unlikly).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Trivalik |
