Your IUSR_* account needs permission to the instantiate the COM object. I can't remember where you do this, but I remember what the screen looks like. (I've been a windows free zone for a few weeks). Check through the Administrative Tools applets. Also download OLEVIEW from microsoft,
I wanted to do something similar once, but to instantiate an Internet.Explorer object, the IEXPLORE.exe permissions were irrelevent. You can can grant permissions to the COM objects to users.
Sorry I can't help any more than that, but I haven't got a windows machine to look this up on at the moment.
update: Does your script need to run under IUSR_...? Do you really want everyone to have access to your calendar or do you want to password protect it? If you want it password protected, you can untick Anonymous access in IIS, and use Basic/NTLM authentication. That might be a temporary workaround.
But since this is more of a Windows/IIS problem, you'll find more help in a related news://microsoft.public.* newsgroup, for example: IUSR_... persmissions problem - Pls Help!
Simon Flack ($code or die)
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;
| [reply] |
Your IUSR_* account needs permission to the instantiate the COM object.
Or you need access to someone who does have permission. I've seen a scheme based on having the web server queue files to another process. The second process ran under a different (more privileged) user account, and had full access to COM and DCOM. This split was some for real or perceived security reasons. (It's been a couple of years, and I've lost the details.)
A benefit of staging things this way is that you get a complete, file-based history for debugging.
| [reply] |
Yes, that might be a better way of doing it. I've done something similar, setting up a SOAP server using Win32::Daemon and SOAP::Lite.
Simon Flack ($code or die)
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;
| [reply] |
I might be off here, but have you tried to save the output of your script to a file and then open your file through a browser? Doing this will ensure that your script is outputting valid HTML. If it's not, I think it might be easier to debug (hmmm, why doesn't this work...what the hell is a <@#$%!> tag...etc)
thor | [reply] |