samspade has asked for the wisdom of the Perl Monks concerning the following question:

I have set up a perl script which creates a html page but also Tees this html output to a Word doc. I then use Win32::OLE to open this Word document and print its contents.I have managed to make this work both locally (on server) and remotely(from client) in a test environment where both machines were Windows2000 Advanced Server. Having copied exactly the steps to achieve this onto a live NT production server, the remote call to launch Word is failing with the baffling error:

Can not launch Word Application Win32::OLE(0.1502) error 0x800706ae: "The object universal unique identifier (UUID) was not found" at C:\Inetpub\scripts\paris\produce_sales_conf.pl line 518.

where line 518 is my $WordApp = Win32::OLE->new('Word.Application','Quit') || die ("Can not launch Word Application ",Win32::OLE->LastError());

I have managed to find out the following about the Object UUID:
The universal unique identifier that identifies a particular RPC object. A server specifies a distinct object UUID for each of its RPC objects; to access a particular object RPC object, a client uses the object UUID to find the server that offers the object.

but am no closer to resolving this issue.

Amazingly if i logon from the remote client to the server as the server Administrator, there is not a problem. This would suggest to me that it is a permission problem but i have tried giving Everyone access to Launch and Access Word Application from Dcomcnfg including I_USR, System, Administrators,etc to no avail.

Any suggestions as to what i might try? I noticed that in the Win32::OLE section there is code to generate a GUID/UUID. Should I be trying to do this? Thanks and regards, Sean

Replies are listed 'Best First'.
Re: UUID not found-Win32::OLE
by mattr (Curate) on Feb 21, 2003 at 16:08 UTC
    I was curious and founds some links that may shed a slight amount of light on the murk.. just googling your error.

    Seems some people have seen this with VB and someone with Java too I believe. (the Java one said "restart your machine").

    The second link below mentions it with VNC and the reply was: Try changing the use_DeferredUpdates setting in the VNCHooks preferences for the problem application to zero.

    http://news.devx.com/cgi-bin/dnewsweb.exe?cmd=article&group=enterprise +.dcom&item=796&utag= http://www.realvnc.com/pipermail/vnc-list/2001-May/022278.html 1710 The object universal unique identifier (UUID) was not found. RPC_ +S_OBJECT_NOT_FOUND http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/r +pc/rpc_return_values.asp http://www-3.ibm.com/software/network/dce/library/publications/dceaix_ +22/a3u2l/A3U2L124.HTM 0x16c9a01b rpc_s_object_not_found Text: Object not found Severity: Component: rpc Explanation: Information was requested, for example, through rpc_objec +t_inq_type, about an object that is unknown to the RPC runtime. Action: Call rpc_object_set_type or rpc_object_set_inq_fn if appropria +te.
      Thank you traveller and matt.
      I am using Office 2000 though so had hoped that OLE would behave itself. I think that one of you might be right --it may be due to an unhealthy interaction with some other software such as VNC(i'm not running vnc by the way but something like that). I have also heard that some anti-virus add-ons could be responsible.

      Unfortunately as the server that i am trying to configure the DCOM script for is a live production server, i do not have the authority to disable/uninstall certain services such as anti-virus to ascertain the effect that this might have.
      Thanks anyway for your help.
      Regards,
      Sean.
Re: UUID not found-Win32::OLE
by traveler (Parson) on Feb 21, 2003 at 15:53 UTC
    It may be an issue of the version of Office. I had terrible problems automating PowerPoint and Word (in the same app) until I switched to Office2000. I read somewhere on the web that OLE was known to misbehave on Office prior to 2000. Unfortunately, I cannot find that reference quickly. It is possible that your issue is Office, not NT.

    HTH, --traveler