Problem in Serial Communication.

When you run the sketch, you get an error. This appears to be a serial issue either in how the OS is managing serial for the Arduino or the serial communications protocol, etc.

this is the issue i am having. because after the error is displayed IDE allocates a different port to the board.