Continue Reading AnithaEswaran’s Article on their blog
System.InvalidOperationException using System.Diagonistics – D365FO
I had to spend a day to crack the issue of executing cmd.exe which was giving the exit code as non-zero with System.InvalidOperationExcception. This was my code When I execute this from command line or ps, it gives the expected result. But bringing this in C# or D365 , ended up with above exception.
Blog Syndicated with AnithaEswaran’s Permission