.NET
+ ExitCode 'process.ExitCode' threw an exception of type 'System.InvalidOperationException' int {System.InvalidOperationException}
1 Reply
Looks like you might be reading
process.ExitCode
while the process is sitll running? https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.process.exitcode?view=net-8.0#exceptions . Your code doesn't access .ExitCode
though, so you're probably not sharing enough code. The exception message should give you more detail
Note, this was cross-posted to #chat
Please don't cross-post. it just means that different people end up answering the same question in different places, which wastes everyone's time