lexbit
lexbit
CC#
Created by lexbit on 8/22/2023 in #help
❔ System.BadImageFormatException: Cannot load a reference assembly for execution.
That's the weird part. But - I have cut down the mystery today (at least getting closer). I've tried a remote debugging session to reproduce the error on the target machine and the exception did not show up. But the local installation has this error occur on runtime and it occurs when running a feature that involves either (System.Net.Http or System.Net.Json - I think; I could be totally wrong too...). I think it could be a possibility that the installer could be the cause of it and that a dll dependency is not being loaded or wasn't configured or just missing.
17 replies
CC#
Created by lexbit on 8/22/2023 in #help
❔ System.BadImageFormatException: Cannot load a reference assembly for execution.
It doesn't return an error when I run dotnet restore in Visual Studio. - the version of windows I'm targeting is not the same as the one I'm building on (target Win10 LSTC - 1809 vs. Win10 22H2). I'm building against .Net 4.8 which is supported on 1809.
17 replies
CC#
Created by lexbit on 8/22/2023 in #help
❔ System.BadImageFormatException: Cannot load a reference assembly for execution.
To be honest, I'm not sure which assemblies are currently not being loaded. I've been trying other general solutions to potentially hone down on what the issue was. I'll be following up on that as I gather more info later on - it looks like atm I'll need to setup remote debugging (which is new to me)
17 replies
CC#
Created by lexbit on 8/22/2023 in #help
❔ System.BadImageFormatException: Cannot load a reference assembly for execution.
Here is the exception :
17 replies
CC#
Created by lexbit on 8/22/2023 in #help
❔ System.BadImageFormatException: Cannot load a reference assembly for execution.
Oh ok - fair. Wasn't sure if enough or too little.
17 replies