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

hey monks,

i still cannot seem to get an outlook calendar to read over IIS. basically i have IIS installed on my computer and anon access off, with Integrated Windows Authentication on. this setup works if my user is logged into my computer. I can view the calendar fine.

When I try to view the calendar from another computer on the domain, i get an error here:
$ol = Win32::OLE->new('Outlook.Application', sub { $_[0]->Quit })or di +e "error: $!\n";
I have outlook reading from a PST file that is in a folder "C:\tmp". is there a way in the new method to specify a PST file, like: "\\mycomputer\tmp\outlook.pst" ? i know you can do:
$ol = Win32::OLE->new(['computername','Outlook.Application'], sub { $_ +[0]->Quit })or die "error: $!\n";
but that hasnt worked either. i have read alot about DCOM and MAPI, but nothing seems to be making sense with this project. i am not quite sure how to let others read the file. i think that it should be able to work. i have another post relating to this here and the OLE documentation is here.

please let me know if you need more information. i am just really confused on this, any help would be great. thanks.

Replies are listed 'Best First'.
Re: outlook calendar through IIS
by gellyfish (Monsignor) on Jun 16, 2003 at 15:59 UTC

    Your problem is almost certainly nothing to do with Perl but is due to the fact that the appropriate user registry hive is not opened when an application is activated using DCOM. See http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B288367 for more on this. One solution that I have used with success is to create a small no-op service that runs as the appropriate user and whose sole purpose is to get the registry hive opened.

    /J\
    

      thanks for the reply, i think you are right, but in the link you gave on step 7, it has
      # Click Start, click Run, and then type DCOMCNFG. Select the applicati +on that you want to automate. The application names are listed below: Microsoft Access 97 - Microsoft Access Database Microsoft Access 2000/2002 - Microsoft Access Application Microsoft Excel 97/2000/2002 - Microsoft Excel Application Microsoft Word 97 - Microsoft Word Basic Microsoft Word 2000/2002 - Microsoft Word Document
      but there is no entry for "Outlook Application", when i run the command, only two things show up for outlook, "Outlook Message Attachment" and "Outlook Office Finder", this was bugging me before... i dont know why it isnt there...

        Looking at the registry I think that for some reason the Office Type library puts Outlook.Application under the Outlook Message Attachment AppId. I would however recommend that you ask this question on some microsoft.* newsgroup as they are almost certainly going to have more experts on these matters.

        /J\
        
      in the HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ there is a key Outlook.Application, so shouldnt that be in DCOM... do you think it is not registered properly or something? the message attachment didnt see to do much when i ran it as the dummy user... but i dont know, i will keep messing with it.

      EDIT

      i found this on google groups, think it is true?