hey-red / Mime

.NET wrapper for libmagic
MIT License
84 stars 22 forks source link

BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) #23

Closed g4genious closed 6 years ago

g4genious commented 6 years ago

Hi,

We are using it in asp.net core2.0 and getting the following exception on

HeyRed.Mime.MimeGuesser.GuessMimeType("filepathhere")

Exception message: BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

hey-red commented 6 years ago

You are run it in 32 bit OS? https://github.com/hey-red/Mime/issues/10#issuecomment-342584814

g4genious commented 6 years ago

No. Win 10 64 bit. Visual Studio 2017 community edition, latest version.

hey-red commented 6 years ago

Project target AnyCPU or x64?

x64