ID: 29800 Updated by: [EMAIL PROTECTED] Reported By: christian at wenz dot org -Status: Feedback +Status: No Feedback Bug Type: COM related Operating System: WinXP PHP Version: 5.0.1 New Comment:
No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2004-10-09 06:45:05] [EMAIL PROTECTED] Hey Christian, You probably need to fully qualify the assembly name to get it working. Here's a non-working example; the assembly is loaded but object unwrapping doesn't give us an IDispatch'able handle, so instantiation fails. Don't ask me how you determine the version and key tokens; I pulled these out of a decompiled .tlb file :-/ $f = new DOTNET('System.Windows.Forms,Version=1.0.5000.0,Culture=neutral,PublicKeyToken=b77a5c561934e089', 'System.Windows.Forms.Form'); PS: the next HEAD snapshot will contain better startup and error reporting for these things; possibly fixing that other .net bug you reported a little while back. ------------------------------------------------------------------------ [2004-08-23 17:46:33] christian at wenz dot org Description: ------------ The .NET sample from the manual (stack, Pop(), Push()) works fine with the new patch, however I encounter problems instanciating .NET objects that are _not_ in mscorlib. I don't think there is an error in my code. Reproduce code: --------------- <?php $dotnetxsl = new DOTNET("System.Xml", "System.Xml.Xsl.XslTransform"); ?> Expected result: ---------------- no output Actual result: -------------- Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object' in e:\Inetpub\wwwroot\php\dotnet1.php:2 Stack trace: #0 {main} thrown in e:\Inetpub\wwwroot\php\dotnet1.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29800&edit=1