Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by rzward (Monk)
on Nov 10, 2002 at 15:28 UTC ( [id://211758]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found