Where are you getting this error? As a direct result of hitting the "New Template" or license button?
Do any other "New" buttons work? Like pages, sites, page types, ...?
Can you check if there are more details in the Event Log?
Is it a one time error, or have you never been able to create a template or add a license?
What version and hotfix are you using?