C# exe file not always executing properly [closed]

  .net, c++, exe, visual-studio, windows

I created two simple C# form programs (selecting files and copying them to a different drive). The problem is that it doesn’t always execute properly. I’ve tested the exe with different frameworks and tried both debug/release versions. The framework is currently set to .Net 4

Sometimes, the programs will execute and work properly. On some computers only one of the exe’s will execute and the other will do nothing. And sometimes the programs will run and then when trying to run it again I get this error.

exe execute error

I’ve tried executing it in different locations to see if it’s a policy issue but the error occurs both on external drive (USB) and on desktop. Seeing that it also happens randomly I don’t see it being a policy issue.

Source: Windows Questions