php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53665 Issue with DOTNET Fatal error: Uncaught exception 'com_exception' with message
Submitted: 2011-01-06 12:32 UTC Modified: 2020-12-20 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: mariavillalonga at yahoo dot es Assigned: cmb (profile)
Status: No Feedback Package: COM related
PHP Version: 5.3.4 OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mariavillalonga at yahoo dot es
New email:
PHP Version: OS:

 

 [2011-01-06 12:32 UTC] 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 



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-12-07 12:41 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-12-07 12:41 UTC] cmb@php.net
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>
 [2020-12-20 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC