Contact Info

Crumbtrail

ActiveXperts.com » Support » Serial Port Component » KB Article

Knowledge Base FAQ Item #3650020

 

Q3650020: I'm using XAMPP to run your ActiveX component. I get the error: "Uncaught Error: Class "COM" not found in C:\Xampp\htdocs\serialport\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 error "Uncaught com_exception: Failed to create COM object 'AxSerial.ComPort': Invalid syntax in C:\Xampp\htdocs\serialport\index.php".
To do so, please register both 32-bit and 64-bit DLL's from the command line in Admin mode:
REGSVR32 AxSerial32.dll
REGSVR32 AxSerial64.dll

(viewed: 219)