Arduino Uploading error

Shut down the IDE and restart it. Check that the COM port needed exists and is selected, similarly with the board type. Reboot the PC if necessary.