swaroop.m has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I am using Win32::OLE module over IIS 5.0 and Win2k machine. When i try to create object of word and then open a word document i always get the error "access denied".
I added the internet guest acccount as the administrator on win2k machine as well as went into DComCnfg and gave full control to the Internet guest account over MS-Word .
This perl script works fine when invoked from command prompt.
Any pointers would be greatly helpful. pls mail me at swaroop_raja@yahoo.com ,
Thanks,
Swaroop

Replies are listed 'Best First'.
Re: Win32::OLE automation and IIS
by gellyfish (Monsignor) on Jul 30, 2004 at 09:50 UTC

    Firstly it is not entirely sensible to be giving the IUSR_<whatever> administrator rights even just for testing purposes.

    The usual way to be running an application such as MS-WORD using DCOM is to be creating a specific (but normal interactive) user which it is to be run as and then give that users credentials on the identity tab in dcomcnfg - the caveat with running an application in this way is that the users registry hive is not loaded so any printers,network shares or whatever that may have been created for the user when they login interactively will not be created. A way round this that I have used before is to create a windows service (one that does absolutely nothing will be fine) that runs as this user - that way the registry hive will be loaded and kept open.

    You will probably find this document useful

    /J\

      Thanks JellyFish
      I solved the problem by actually following the same document
      this time i followed the exact statements as they are , in the MS-KB article ,
      Thanksalot
      Swaroop
Re: Win32::OLE automation and IIS
by ysth (Canon) on Jul 30, 2004 at 04:22 UTC
    I think people are unlikely to email; you'll have to stop back here to catch all the responses.
      i shall stay back for the reply.
      It would be great. If someone gives me some pointers !
      Thanks ysth!