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

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
February 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28   
« Jan   Mar »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...