Bug #41055 [Opn->Fbk]: DOTNET not instantiating fully-pathed assembly

From: Date: Thu, 25 Jun 2020 15:55:12 +0000
Subject: Bug #41055 [Opn->Fbk]: DOTNET not instantiating fully-pathed assembly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227667@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=41055&edit=1

 ID:                 41055
 Updated by:         cmb@php.net
 Reported by:        daarond at gmail dot com
 Summary:            DOTNET not instantiating fully-pathed assembly
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            COM related
 Operating System:   WinXP
 PHP Version:        5CVS-2007-04-11 (snap)
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

It's hard to tell why the class can't be instantiated without
having access to the class (or its documentation).  If this issue
is still relevant, please provide the DLL again.  Thanks.


Previous Comments:
------------------------------------------------------------------------
[2007-08-15 08:34:04] jani@php.net

Assigned to the maintainer.

------------------------------------------------------------------------
[2007-04-11 18:06:02] daarond at gmail dot com

Description:
------------
Bug #29800 did not pursue it, but I would like to go forward with resolving it.

I have a strongly-typed assembly that I added to the GAC. By the way, the simplest way to get the
token information is to use gacutil with the /l switch.

To fully reproduce it, you can download the DLLs I am using:
http://www.angorasoftware.com/test/Core.zip


Reproduce code:
---------------
<?php
$dotobj = new DOTNET("watin.core, Version=1.1.0.1001, Culture=neutral,
PublicKeyToken=b26a14bb9ccc0290, processorArchitecture=MSIL", "WatiN.Core.IE"); 
$dotobj = null;
?>

Expected result:
----------------
It should open a web page.

Actual result:
--------------
PHP Fatal error:  Uncaught exception 'com_exception' with message 'Failed to
instantiate .Net object [CreateInstance] [0x80131604] ' in C:\PHP5\wtest.php:3
Stack trace:
#0 C:\PHP5\wtest.php(3): dotnet->dotnet('watin.core, Ver...',
'WatiN.Core.IE')
#1 {main}
  thrown in C:\PHP5\wtest.php on line 3


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=41055&edit=1


Thread (5 messages)

« previous php.bugs (#227667) next »