in reply to Re^3: Open another IE browser window from CGI
in thread Open another IE browser window from CGI

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!