http://qs321.pair.com?node_id=211758

rzward has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

To help debug a difficult to find HTTP 500 Internal Error problem on a Win2K IIS 5.0 Web server running my ASP PerlScript script, I would like to employ the equivalent of

use CGI::Carp qw(fatalsToBrowser);

In my CGI Perl scripts, I use the above statement to automatically redirect fatal errors such as compiler or other errors to the browser.

Does anyone know if there is an equivalent to the above statement for ASP PerlScript scripts?

Thank you in advance for your help.

Richard

  • Comment on ASP PerlScript equivalent for use CGI::Carp qw(fatalsToBrowser);

Replies are listed 'Best First'.
Re: ASP PerlScript equivalent for use CGI::Carp qw(fatalsToBrowser);
by Jenda (Abbot) on Nov 10, 2002 at 16:40 UTC

    I think you need to go to the

    Internet Services Manager
      computername
        Web Site
          Properties
            Home Directory
              Configuration
                App Debuging
    
    and check "Send detailed ASP error messages to client"

    You may do this of course on the directory level as well.

    I don't think you can set this for separate scripts though.

    Jenda

      Jenda,

      Thank you for the help.

      I will have this setting verified tomorrow (the computer is not accessible to me). However, I believe this is the default setting and on my own Win2K machine, changing this setting does not change what the browser displays when I deliberately type syntax errors in my script.

      In any case, it's worth a try on the machine that has the problem.

      Richard

        One more thing. Do you use Win32::ASP;?

        If I try for example:

        <%@ Language=PerlScript %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ... (some more HTML) <% use Win32::ASP; $x = 1 / 0; %>
        I get:
        PerlScript Error error '80004005' (in cleanup) Illegal division by zero /vars.asp, line 13

        Jenda