我有个c#写的dll(ASEncrypt.dll)需要用php调用,php.ini里面设置了com.allow_dcom = true,也注册了ASEncrypt到注册表里面,请问报错的原因是什么?代码如下:
$com = new COM("ASEncrypt.EncryptComClass") or die("无法建立COM组件");报错:
Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `ASEncrypt.EncryptComClass': 无效的语法 ' in F:\wamp\www\test\testcom.php:2 Stack trace: #0 F:\wamp\www\test\testcom.php(2): com->com('ASEncrypt.Encry...') #1 {main} thrown in F:\wamp\www\test\testcom.php on line 2
$com = new COM("ASEncrypt.EncryptComClass") or die("无法建立COM组件");报错:
Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `ASEncrypt.EncryptComClass': 无效的语法 ' in F:\wamp\www\test\testcom.php:2 Stack trace: #0 F:\wamp\www\test\testcom.php(2): com->com('ASEncrypt.Encry...') #1 {main} thrown in F:\wamp\www\test\testcom.php on line 2
我安装了Microsoft.NET Framework2.0 和Microsoft.NET Framework2.0语言包 还需要什么?