Bug #53665 [Opn->Fbk]: Issue with DOTNET Fatal error: Uncaught exception 'com_exception' with message

From: Date: Mon, 07 Dec 2020 12:41:37 +0000
Subject: Bug #53665 [Opn->Fbk]: Issue with DOTNET Fatal error: Uncaught exception 'com_exception' with message
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230894@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53665&edit=1 ID: 53665 Updated by: cmb@php.net Reported by: mariavillalonga at yahoo dot es Summary: Issue with DOTNET Fatal error: Uncaught exception 'com_exception' with message -Status: Open +Status: Feedback Type: Bug Package: COM related Operating System: Windows 7 PHP Version: 5.3.4 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: If this is about .Net Framework 4.0 or later, the behavior is to be expected, since these versions are only supported as of PHP 8.0.0[1]. As workaround for previous PHP versions, you can register the .Net classes and use the com class to instantiate them. [1] <https://www.php.net/manual/en/com.configuration.php#ini.com.dotnet-version> Previous Comments: ------------------------------------------------------------------------ [2011-01-06 12:32:51] mariavillalonga at yahoo dot es Description: ------------ I'm developing a web application that uses Windows Search to find files in a server. When I'm trying to instantiate a CSearchManager object, I get an error message. Test script: --------------- $assembly = 'Microsoft.Search.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f748985a6e9a7cb, processorArchitecture=MSIL'; $namespace = "Microsoft.Search.Interop"; $class = "CSearchManager"; $manager = new DOTNET($assembly, $namespace.$class); Actual result: -------------- Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070002] The system cannot find the file specified. ' in C:\Websites\ThesisIntra\digarc\index.php:374 Stack trace: #0 C:\Websites\ThesisIntra\digarc\index.php(374): dotnet->dotnet('Microsoft.Searc...', 'Microsoft.Searc...') #1 {main} thrown in C:\Websites\ThesisIntra\digarc\index.php on line 374 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53665&edit=1

« previous php.bugs (#230894) next »