Post your whole code. State the parts you are using and how they are connected. Verify the SD card is good, 2 gb or less and formatted FAT16.

Do you have this line near the top of your code ?

...