Forum Moderators: open

Message Too Old, No Replies

asp or asp.net with new server

new server is running asp.net

         

justraquel

6:01 pm on Nov 6, 2005 (gmt 0)

10+ Year Member



Please bear with me...I am a bit of a novice.

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()'

sullen

6:59 pm on Nov 6, 2005 (gmt 0)

10+ Year Member



well if the technician is right and it's a memory problem (I'm not sure - we've had this a couple of times only for it to fix itself), then the problem is likely to be with the code itself, not the fact that it's ASP.

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?

justraquel

7:19 pm on Nov 6, 2005 (gmt 0)

10+ Year Member



I am using 4 includes. Each include contains simple static html.

Any help is greatly appreciated.

justraquel

7:55 pm on Nov 6, 2005 (gmt 0)

10+ Year Member



I just realized that I had 5 includes. One of them contained asp code used 'Randomize' to generate a random fact. I removed the code and replaced it with html.

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!

sullen

8:04 pm on Nov 6, 2005 (gmt 0)

10+ Year Member



Did you forget to put "end select" in the code or just that snippet? (I have no idea what effect that would have mind).

If you get the problem again without that bit of code (or with that bit of code but with end select) then the technician is just making excuses - it's a server problem.

justraquel

8:13 pm on Nov 6, 2005 (gmt 0)

10+ Year Member



I forgot the end select in the snippet that I pasted.

Do you think a randomize code could be causing the ram not to be released?

aspdaddy

3:20 pm on Nov 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is the Server running Norton AV?
Is the code writing text files?