Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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

by rzward (Monk)
on Nov 10, 2002 at 15:28 UTC ( #211758=perlquestion: print w/ replies, xml ) Need Help??
rzward has asked for the wisdom of the Perl Monks concerning the following question:


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.


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
        Web Site
            Home Directory
                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.



      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.


        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


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://211758]
Approved by Jenda
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2015-10-10 08:11 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (255 votes), past polls