lotus notes - LotusScript agent for WIA causes error when run on Domino server -


i have lotusscript agent runs after new mail arrives. agent returns:

err 208 cannot create automation object

when enabled on server, runs fine when changed run menu on selected docs using notes client.

dim oimage variant dim oprocess variant dim lngh long, lngw long  'build object   -- works notes client not server agent... set oimage = createobject("wia.imagefile")  'load     oimage.loadfile sfilename lngh = oimage.height lngw = oimage.width 

the error occurs when trying createobject("wia.imagefile")

the wiaaut.dll file resides in domino\data directory -- notes\data directory. not sure if or how permissions may need set.

the lotusscript agent signed id listed in group in domino directory listed in server doc

sign or run unrestricted methods , operations

and security agent set

  1. allow restricted operations full administrator rights.

this signing id working other agents performing restricted operations.

i think error specific wia object. thoughts?

if runs in client, must using 32 bit dll (as per comment @fruitysoup). same dll can't work 64 bit code.

also, createobject relies on registry entries. afaik, dropping in data directories shouldn't make difference. on 64 bit machine, registry entries found in hkey_classes_root\wia.imagefile, hkey_local_machine\ software\classes\wia.imagefile, hkey_classes_root\wow6432node\clsid{long id here}\inprocserver32. keys pretty indicate 32 bit software.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -