For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > December 2006 > Warning: Persistent ASP 0240 Bug in ActivePerl 5.8









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Warning: Persistent ASP 0240 Bug in ActivePerl 5.8
David Dickinson

2006-12-23, 10:00 pm

Hello,

Running the following ASP web page on any version of ActivePerl 5.8.x under
any version of Win32/IIS returns an error:

----- BEGIN ASP CODE -----
<%@ LANGUAGE="PerlScript" %>
<%
$Response->End();
%>
----- END ASP CODE -----

The script will run correctly the first time but, if the page is refreshed
in the web browser, the following error message is displayed:

----- BEGIN ERROR MESSAGE -----
Active Server Pages error 'ASP 0240'

Script Engine Exception

/test.asp

A ScriptEngine threw exception 'C0000005' in
'IActiveScript::SetScriptState()' from 'CActiveScriptEngine::ReuseEngine()'.
----- END ERROR MESSAGE -----

Refreshing the web page in the browser allows for normal continuation. A
VBScript version of the same code does not result in this error message.

This problem has dire consequences. Many scripts which use, for instance,
$Response->Redirect() to a page that contains a $Response->End() can die.
All that the web site visitor sees is the error message. They don't know
that they can simply refresh the web page to get past the error.

This bug (ActiveState Bug 65223) has, as far as I know, existed in every
version of ActivePerl 5.8.

--
David Dickinson


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com