Solved

Active Server Pages error 'ASP 0240'

Posted on 2009-07-07
2
957 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 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