I think you are describing the problem incorrectly.

Try "compile only" instead of "compile and program" then check the hex file if it is there.

After that, pls describe the problem again.