❔ Published App fails to start and exits with code -1073740286
Having a bad time trying to figure out why this is happening, I had built logging into my app too but that seems to not be kicking in for some odd reason, I'm thinking something in the runtime might be having issues before it's calling into my code.
21 Replies
Oh, and this is trying to run with .NET 7, and I have not tried running with earlier versions.
How are you running this?
Either through file explorer or in the command line, which both exit without giving rime or reason.
I used a separate process (using the
Process
BCL Api) to start and then read the exit code when it crashes.Can you try with dotnet run
Or with windbg
It runs fine in VS, starts up with logging and everything. This is the published app that's having issues.
Hmm
It sounds like missing/unfindable library
Does it not bother to report that to the console or something?
Console, no. From explorer it would normally tell you
Which it does not.
Suggest launching from windbg
Using VS to open the folder, setup a debug configuration for the app, started to debug it, and it has this to say:
'The process aborted due to a fail fast exception.'
No clue.
You could try grep.app to try and find any use of FailFast in bcl for clues
That should be triggering WER and a dump?
Error message should also be in the event log according to docs
What's funny is that it ran "fine" when compiled as a single file, but that has it's own issues with the app's function at present.
The event viewer logs don't give any great insight into the problem, only that the issue is from
coreclr.dll
What's the 0x fail code?
Does the event viewer tell you anything?
IIRC FailFast logs to there
Nothing useful.
A few attempts at a clean rebuild later, and it finally starts normally but I'm none the wiser for why this happened...
hit it with procmon
show the screenshots
Now that I've gotten rid of it, I don't know if I can repro...
mood
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.