Contact Info

Crumbtrail

ActiveXperts.com » Support » Network Component » KB Article

Knowledge Base FAQ Item #1660020

 

Q1660020: I'm using XAMPP to run your ActiveX component. I get the error: "Uncaught Error: Class "COM" not found in C:\Xampp\htdocs\networkcomponent\index.php". What's wrong?

By default, COM is disabled in Xampp. You must enable COM in your PHP.INI file:
extension=php_com_dotnet.dll

Besides that, make sure you register both 32-bit and 64-bit DLL's to avoid errors like "Uncaught com_exception: Failed to create COM object 'AxNetwork.DnsServer': Invalid syntax in C:\Xampp\htdocs\networkcomponent\index.php".
To do so, please register both 32-bit and 64-bit DLL's from the command line in Admin mode:
REGSVR32 AxNetwork32.dll
REGSVR32 AxNetwork64.dll

(viewed: 251)