#46224 [Opn]: Cannot instantiate .Net object (ABCpdf 6.1 .Net)

From: Date: Fri, 24 Oct 2008 10:39:57 +0000
Subject: #46224 [Opn]: Cannot instantiate .Net object (ABCpdf 6.1 .Net)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130036@lists.php.net to get a copy of this message
ID: 46224 Updated by: bjori@php.net Reported By: mark at koalit dot dk Status: Open -Bug Type: Systems problem +Bug Type: COM related Operating System: Vista Business SP1 (da) PHP Version: 5.2.6 New Comment: reclassified. Previous Comments: ------------------------------------------------------------------------ [2008-10-03 13:08:31] mark at koalit dot dk Forgot to include PHP version (5.2.6) ------------------------------------------------------------------------ [2008-10-03 13:07:10] mark at koalit dot dk Description: ------------ .Net framework version 3.5 (latest) is installed. Installed a specific .Net component, but PHP fails to instantiate the object. The script is runnning from command line. The standard example: $stack = new DOTNET("mscorlib", "System.Collections.Stack"); $stack->Push(".Net"); $stack->Push("Hello "); echo $stack->Pop() . $stack->Pop(); Works fine - returns "Hello .Net" Seems like lot's of users have problems using .Net objects from PHP - can you confirm this as a bug or is a local problem ? Reproduce code: --------------- $pdf = new DOTNET("Assembly=ABCpdf, Version=6.1.1.5, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169", "Websupergoo.ABCpdf6.Doc"); (needs to install ABCpdf 6.1 .Net from www.websupergoo.com) Expected result: ---------------- nothing Actual result: -------------- PHP Fatal error : Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80131047]' in D:\dotnet\dotnet.php Stack trace: #0 (snip) dotnet->dotnet('Assembly=ABCpdf...', 'Websupergoo.ABCpdf6.Doc') #1 {main} thrown in D:\dotnet\dotnet.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46224&edit=1

« previous php.bugs (#130036) next »