IIS / COM yet another one.
| From: | Ryan Marrs | Date: | Mon, 18 Nov 2002 14:29:39 +0000 |
| Subject: | IIS / COM yet another one. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17005@lists.php.net to get a copy of this message | ||
I have the following code for managing validation of data on a SQL server.
I was just using the NEW COM code, but after exhausting everything else, I
gave it a go with the com_load and com_invoke.
System Specs:
Windows XP Professional
IIS 5.0 / PHP 4.2.3
$_GET["DocumentID"] = 115739;
Pursue_Utility_DLL.dll is located in d:\inetpub\wwwroot\PursueWEB\
clsPursueUtility is the name of the class. ValidateDocumentData is the name
of the sub.
All permissions granted were to everyone.
<?
$Conn = com_load("Pursue_Utility_DLL.clsPursueUtility") or
die("That didn't work.");
$Result=$Conn->com_invoke(ValidateDocumentData($_GET["DocumentID"]));
?>
We've all heard the Access denied problems and having to use DCOMCNFG, well,
that was done, and after I granted it access, I now receive this:
[18-Nov-2002 09:19:51] PHP Warning: Unable to obtain IDispatch interface
for CLSID {9C7CF062-207D-4D74-8410-2A3C752FB489}: No description available
in d:\inetpub\wwwroot\PursueWEB\editdocumentco.php on line 38
The file was registered...
Any ideas?
Thanks!