Why does Win32 :: OLE not talk to Excel2003 under Win2003?

I have a Web Perl Win32 :: OLE script that uses Excel on the server side. He has been working for many years on a Win2000 server running Excel2000. We recently upgraded to Win2003 / Excel2003, and now I got the following error from a script:

Win32::OLE(0.1709) error 0x80070005: "Access is denied" at create_worksheet_lib.plx line 639 eval {...} called at create_worksheet_lib.plx line 639 

line 639:

 $Excel = Win32::OLE->new('Excel.Application', sub {$_[0]->Quit;}) or die "Oops, cannot start Excel"; 

It seems like Perl no longer has access to Excel. Any Windows gurus that can help solve the problem?

+6
perl excel ole
source share
2 answers

It looks like the same evil problem described in another post , however no solution was found ...

Perhaps troubleshooting Procmon will show where the problem is (see http://support.microsoft.com/kb/286198 ).

+1
source share

Is it possible to run the script from the command line on the server (from the web server from the composition)? This is the first thing I will try. If it works from the command line, then this is probably a problem with permissions or a problem with setting up a web server.

0
source share

All Articles