Error while uploading code

Did you try the steps in the troubleshooting guide?

Is the board really a Lilypad?