Installation Failed showing Purchase Code is Not Valid for this Script.

I’m trying to install a project bought from codecanyon but it’s showing " Your Purchase Code is Not Valid for this Script", Although the purchase code is completely right.
If anyone knows the solution please help.