Home > Back-end >  Cannot execute Windows Form .exe on Raspberry Pi with Ubuntu
Cannot execute Windows Form .exe on Raspberry Pi with Ubuntu

Time:05-24

I've installed the .NET SDK on my Raspberry Pi with Ubuntu to run my Windows Form applications. If i try to run it the following error shows up:

bash: ./programname.exe: cannot execute binary file: Exec format error

As far as I know thats because the application wasn't created with a ARM64 system.

Is there any way getting around that error?

Thank you very much!

CodePudding user response:

.exe is a Windows executable, and won't run on Linux. Likewise, Windows Forms is dependent on Windows-specific APIs and again won't run on Linux.

Technically there might be a way with Wine or Mono but that's another topic.

  • Related