First, thanks digger for pointing me in the right direction. I think this is an IIS issue so I will take it elsewhere and return the solution here if I find it.
That being said, I can't get an error to show. I have:
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
use Win32::OLE qw(in with);
use Win32;
my $browser = Win32::OLE->new("InternetExplorer.Application");
$browser->{visible}=1;
$browser->Navigate($SelectedAppURL)
|| die("IE Not Started:", Win32::FormatMessage(Win32::GetLastError
+()));
#|| die("IE Not Started:",Win32::FormatMessage(Win32::OLE::Las
+tError()));
The code does die on the Navigate line, but the results from both GetLastError and LastError are 'The Operation Completed Successfully'. Carp doesn't return anything of value besides 'Software error'. And if the die() is not in the code, no error is returned.
And as a point of interest on the Windows - IIS side, I've tried:
Giving full security permission to Administrator, IUSER to the iexplorer.exe folder and the folder containg the cgi files
Gave rights in IIS
Changed IIS Anonymous Access to Administrator
Set local accounts to 'act as part of the OS'
Change the IIS login
Do you believe in miracles? Yes!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.