Solved

Active Server Pages error 'ASP 0240'

Posted on 2009-07-07
2
969 Views
Last Modified: 2012-05-07
I am suddenly getting the following error in an ASP page:

A ScriptEngine threw exception 'C0000005' in 'IActiveScript::GetScriptState()' from 'CActiveScriptEngine::ReuseEngine()'.

Happens infrequently after IIS is running for a few days. Restarting IIS service fixes the problem.

This page had been working fine. It uses recordsets to hit a database table. The only thing I have changed is that now the page hits a MySQL database with the ODBC driver rather than SQL Server database table. Nothing else has changed. I put in code to make sure all recordsets were closed because I read that open recordsets could cause this problem. Any ideas?
0
Comment
Question by:mdoolittle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
rg20 earned 500 total points
ID: 24798427
not only close but discarding the object

rs.close
set rs = nothing

may have to switch the lines
0
 

Author Comment

by:mdoolittle
ID: 24798559
we'll see if that works- tx
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to select record with In and condition together based on more then one coulmn 7 39
ASP AND XML 3 31
Html split(text) 2 32
GitHub 1 12
I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question