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

SCOTtish summit 2021

On February the 27th Scottish Summit 2021 will come to you as a virtual event. With over 250 sessions from all Microsoft technologies. You need to register for your FREE ticket and download the Scottish Summit App to see all the great sessions.