I have purchased the new license but error says its expired.
It seems you are still using your older license file with Aspose APIs, so you should check which license (older or newer license) is being used, you may check license file path. In case, you still find the issue, kindly share which Aspose APIs (with version details) you are using? Also, share your code snippet (regarding setting license) and exact error message you got. Moreover, you may post us your license file via a private message, see the topic on how to send license file to the team.
PS. please do not share your license in this thread.