Jump to content


Photo

error ...com exception.....


  • Please log in to reply
1 reply to this topic

#1 sharath

sharath
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 15 September 2006 - 06:44 AM

Hai,
I'm trying to add a new user. But i'm getting fatal error.
This is my program....

PHP Code:
<?php
Adduser() ;
function Adduser()
{
print("creating user \n");
$obj = new COM("WinNT://.");
try {
$user = $obj->create("user", "test");
$user->Description = "New User" ;
$user->setinfo();
} catch( exception $e ) {
print("error ........ \n");
$user = new COM ( "WinNT://./test");
}

Below are the error message that I got from this program .

error...
exception 'com_exception' with message 'Source: Unknown
Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `WinNT://./test': The group name could not be found.
Stack trace:
#0 C:\Program Files\php\adduser.php(14): com->com('WinNT://.
/test')
#1 C:\Program Files\php\adduser.php(2): Adduser()
#2 {main}
thrown in C:\Program Files\php\adduser.php on line 14

Can you solve my probelm........?
Thanks in advance..
Regards,
sharath.

#2 sharath

sharath
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 15 September 2006 - 10:47 AM

can u tell me is there any syntax error in above pgm.... ?
Thanks...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users