Adding specific exception 'BadImageFormatException' when resolving assemblies