Hi,
 
Script fragment below is run in the following enviroment:
WinXP Home ed. + MSAccess 2000 + ActivePerl (both PerlIS.dll or
Perl.exe)

Script executed from the command prompt works OK, connecting to the
database and displaying its contents. Same script, when run as CGI,
displays initial message and hangs, presumably when trying to connect to
the database (diagnostic messages following DBI->connect do not get
displayed). Script does not display any error messages, just hangs
indefinitely.

------------------------------------
print "Content-type: text/html\n\n";
print "<html<body>\n";
print "<center>Token dictionary</center>\n";

$dbh = DBI->connect("dbi:ODBC:Dict", "", "", {
    PrintError => 0,
    RaiseError => 1
    })
    or die "Cannot connect...\n";

(more diagnostic messages and database access stuff follows...)
---------------------------------------
Other CGI scripts (not using DBI) work fine. Proper operation when
invoked from the command prompt lets me think that ODBC source is
properly configured (system DSN). The database seems to be located in
the world-readable directory, however the only possible source of the
problem coming to my mind are the access rights of the IUSR_WINXP (being
the privilege level bound with IIS). Most of the info available on the
net covers Apache/*nix environment, where I do manage myself. Has anyone
WinXP experience to share (I am not a WinXP expert)?

TIA,

CryptIQ

Reply via email to