Hi , I’m getting this exception when trying to run a C# library on a 3152 with FW: 2022.0.5 LTS. No error on a 3152 loaded with version 2021.6 . Could you please point me in the right direction for solving this ? Thanks

EDIT:
In my original answer, where I say “building the C# project specifically for firmware version 2022.0.5.”, I’m thinking of C++ projects, where it’s possible to select a specific SDK. For C# projects that’s not possible - it’s about the version of the eCLR, not the SDK.
Can I ask - what version of the Visual Studio extension is being used in this case?
In this case, I suspect that the error might be in the C# code. I can’t explain why the error does not happen with the earlier firmware version. We would need to get a C# project that demonstrates this problem, in order to investigate further - not necessarily the complete project, but just a minimum project that demonstrates the issue. If you are able to send us something, please let us know and we can tell you where to send the project.
Another thing you could try: the firmware is always supposed to be backwards compatible, so that applications built for version 2021.6 (for example) should run on later firmware versions. However, it would still be worth:
* building the C# project specifically for firmware version 2022.0.5.
* in the PLCnext Engineer project, replacing the controller with AXC F 3152 Rev ≥ 2022.0 (if you haven't already).
… and seeing if that solves the problem.