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
command1
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.
And this is the solution
command2
This says the compiler that the arguements to the method is to be…

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

Author: Anitha Santosh

Share This Post On