Forum Moderators: open
I have a website that I've been running classical ASP on for a few years. I changed hosting companies and now I'm getting an error message every couple of hours.
The server technician said that the reason I am getting the error is because I am using old ASP code. He said that the old cold is 'holding on to bits of ram' and after several users visit the website, I exceed my ram limitation and the error occurs.
Is there a way to fix this problem without recoding every page to .aspx? I'm using only about 5 lines of ASP code per webpage, the ASP code is basically includes. I have over 1300 pages and I can't imagine having to recode all of them.
Thanks in advance for suggestions.
Raquel
The error message is:
Active Server Pages error 'ASP 0240'
Script Engine Exception
/allergies/Default.asp
A ScriptEngine threw exception 'C0000005' in 'IActiveScriptParse::ParseScriptText()' from 'CActiveScriptEngine::AddScriptlet()'
when you say it's mostly includes, do you mean that you are simply using ASP includes in order not to have to have the full HTML header and footer on each page (i.e. the code is effectively static), or do you mean that you are using includes that contain ASP code written by someone else?
The randomize was
Randomize
intChoice = Int(Rnd * 755)
Select Case intChoice
Case 0 blah blah blah
to
Case 756
Would the randomize code cause the excess ram problem?
Please help!