Windows XP throwing an error message as “invalid product code”

Hi,
A newly purchased system is causing problems while rebooting the new Windows(upgrading to different Windows). I installed a new copy of Windows XP, but got an error saying "invalid product code" and Microsoft refuses to activate even though I entered the appropriate code. What will be the exact cause of this error? Thanks folks.
