This error occurs when running the program from the command line. If the output filename is not a valid filename or is to be created on a drive that is not currently available then this error will be generated.