When you run a .NET application that is hosting one of Automated Solutions' ActiveX Controls, you receive the following error message at run time:
An unhandled exception has occurred in your application. You do not have a license to use this ActiveX control.
This error occurs when one of Automated Solutions ActiveX Controls is hosted in a .NET application, and the control was dynamically created through code rather than placing an instance of the control on a form.
Since Automated Solutions ActiveX Controls are licensed, to create the control dynamically you need to perform additional licensing steps.
Refer to related Microsoft Knowledgebase articles: