Perl in ASP page - PerlScript Error error '80004005'RSS

1 reply

Last post Aug 29, 2011 04:05 AM by HCamper

  • Perl in ASP page - PerlScript Error error '80004005'

    Aug 29, 2011 03:24 AM|Piotr Janisz|LINK

     

    Hello,

    I had a problem with Perl script in ASP page which I managed to solve. Sollution may be usefull for somebody so here is a problem and sollution:

    I was using IIS 7.5 on Windows Server 2008 R2 SP1 and Perl 5.12.4 64 bit.

    I had a simple page:

    <%@ LANGUAGE = PerlScript %>
    <html>

    <%
    use strict;
    use Win32::ASP qw(:strict);
    %>

    <BODY>
    <%
    $Response->write("Hello from Perl in ASP");
    %>
    </BODY>
    </HTML>

     and when I wanted to see it I got following error:

    "PerlScript Error error '80004005'

    Global symbol "$Response" requires explicit package name

    /test_perl.asp, line 11"

     

    It turned out that:

     - 64 bit Perl won't work, so you have to install 32 bit perl, and also configure application pool configured to run with 32 applications and set managed pipeline mode to classic

    - you have to add following line after "use strict":

        our($Response,$Application,$Request);

     

     

    cheers

    Piotr

     

     

  • Re: Perl in ASP page - PerlScript Error error '80004005'

    Aug 29, 2011 04:05 AM|HCamper|LINK

    Hi Piotr ,

    Thank you for sharing the solution.

    Trouble shooting Perl problems in ASP and getting the error '80004005'

           and your solution will save other users time and fustration.

     The Perl developers using windows can search  (Google or Bing) can find this information

    and solve the error and then get back to doing Perl Scipts and Coding.

    The other Perl Developers should be thankful for your work :D.

    Cheers :)

    Martin

     

     

    Windows and Linux work Together IT-Pros
    Community Member Award 2011