Process exists with ExitCode 255

Exit code 255 sounds like a .NET exception within the tool (target application) you’re running. You’ll not be able to catch this exception in your code.

I would register a debugger for the target application to see what exception it throws:

  1. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
  2. Create a key with the name of the executable you’re starting
  3. Create a string called Debugger
  4. Give it a value, e.g. vsjitdebugger.exe if it’s a .NET application

This will start the debugger and you can catch exceptions.

Leave a Comment