C# SDK Apps return error/exit code 127

Hi all,

not sure if I missed something obvious. When I build the C# .NET apps from the SDK, upload&install them on a virtual ctrlX (via ctrlX Works), they are not started.

For example building and running the diagnosis example (https://github.com/boschrexroth/ctrlx-automation-sdk/tree/main/samples-net/diagnostics.logbook) does not result in lookbook entries. Having a look into the logs, shows me that the diagnosis.logbook application can not be found:

From the first look, the file location looks alright:

I tried out some other C# example apps where I got the same issue. Another developer tried to follow the C# SDK as described and ran exactly in the same issue.

Operating system: Ubuntu Core 20
Architecture: amd64

ctrlX Works version 1.12.0

ctrlX SDK version: 1.12.1

Best reply by schoeffler

Thanks for checking!

We were able to solve the problem: We noticed that the problem occurs only with snaps that were build by one specific machine (Development qemu). After a full reinstall of the dotnet SDK 6.0, also snaps from this machine did work. We are almost 100% sure it had something to do with a wrong/incompatible dotnet version.

// Unfortunately, I can't tell how we installed the previous "incompatible" dotnet SDK (it was dotnet v5), since we did the reinstall at the very beginning.

View original
2 replies