Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception. System.BadImageFormatException #152

Open
Stgocf opened this issue May 25, 2022 · 6 comments
Open

Unhandled exception. System.BadImageFormatException #152

Stgocf opened this issue May 25, 2022 · 6 comments

Comments

@Stgocf
Copy link

Stgocf commented May 25, 2022

Hi! i'm trying to use Logshark on docker, in macOS, with the following command

docker run -v ~/Tableau/logs-20220523.zip:/app/logs.zip -v ~/Tableau/LogSharkDocker/Output:/app/Output logshark:latest logs.zip --plugins "Apache;Config" -p

but i'm receiving this output

Unhandled exception. System.BadImageFormatException: Could not load file or assembly '/app/LogShark.dll'. An attempt was made to load a program with an incorrect format.
File name: '/app/LogShark.dll'

can anyone give me a hand with this? i'm very new to LogShark
thx you!

@gilmoregrills
Copy link

I also got this error! Did you have any luck debugging it before?

@Stgocf
Copy link
Author

Stgocf commented Nov 18, 2022

@gilmoregrills nothing! but i will schedule this for my next week trying with the latest version!
just for curiosity: why are you trying this?

@tb582
Copy link

tb582 commented Dec 5, 2023

same here!

@nmolinossb
Copy link

Did anyone figure this out?

@nmolinossb
Copy link

Was able to get it working by modifying line 6 of the Dockerfile to specify the platform:

FROM --platform=linux/x86_64 mcr.microsoft.com/dotnet/core/runtime:3.1

@abhishekvd04
Copy link

Hi @nmolinossb , I tried your suggestion but it didn't work. Did you make any additional changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants