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.
And this is the solution
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
More About This Author
Array
- Finance & Operations15 April 2024New pricing for Microsoft Dynamics 365 effective October 2024
- Finance & Operations7 April 2024Virtual entity in Data Management – 10.0.39
- Finance & Operations5 April 2024One Dynamics One Platform – D365FO – LCS – PowerPlatform
- Finance & Operations24 March 2024D365FO Service updates