Abid Raza
Abid Raza

Reputation: 1

Invalid YaraSharp library in C#

When i run the code below that error appears.

using YaraSharp;
YSInstance YSInstance = new YSInstance();

System.BadImageFormatException: 'Could not load file or assembly 'YaraSharp, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null'. Format of the executable (.exe) or library (.dll) is invalid.'

Unhandled exception. System.BadImageFormatException: Could not load file or assembly 'YaraSharp, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null'. Format of the executable (.exe) or library (.dll) is invalid. File name: 'YaraSharp, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null' at Program.$(String[] args)

If you guys can find a solution to it.

I tried reinstalling and it didn't work. I don't know how to fix it.

Upvotes: 0

Views: 54

Answers (0)

Related Questions