Uploading problem

There are two USB jacks on the Due:

Your code is written for use with the Due connected to the computer via the Programming Port.