YoelBenYossef
Programmer
Hi there,
I'm working on some legacy code written in VBScript in an ASP page. It works fine with IIS in Windows XP, and Windows 2000, but on Server 2003, it just times out. The error that I get is:
Error Type:
Active Server Pages, ASP 0113 (0x80004005)
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.
/meetingsystem/defaulttestold.asp
Through Trial and error, I found that the error came from this part of the code:
Do Until RS.EOF OR count = 9
'Used to alternate colors between lines
If i = 1 then
i = i + 1
Response.Write "<TR bgcolor=#FFFFFF><TD><Font color=black><Center>" &"<font size=4 face=Arial>" &FormatDateTime(objtime,vbShortTime)& "</TD><TD><Font color=black size=4 face=Arial> " & objMeeting&"</TD><TD>" & "<Font color=black size=4 face=Arial>" & objRoom & "</TD</TR>"
else
i = i - 1
Response.Write "<TR bgcolor=#3E797D><TD><Center><Font color=F5F5F5 size=4 face=Arial>" & FormatDateTime(objtime,vbShortTime)& "</TD><TD><Font color=F5F5F5 size=4 face=Arial>" & objMeeting&"</TD><TD><Font color=F5F5F5 size=4 face=Arial>"&objRoom&"</TD</TR>"
End IF
RS.MoveNext
count = count + 1
Loop
I'd appreciate help immensly.
Thanks
Eric
I'm working on some legacy code written in VBScript in an ASP page. It works fine with IIS in Windows XP, and Windows 2000, but on Server 2003, it just times out. The error that I get is:
Error Type:
Active Server Pages, ASP 0113 (0x80004005)
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.
/meetingsystem/defaulttestold.asp
Through Trial and error, I found that the error came from this part of the code:
Do Until RS.EOF OR count = 9
'Used to alternate colors between lines
If i = 1 then
i = i + 1
Response.Write "<TR bgcolor=#FFFFFF><TD><Font color=black><Center>" &"<font size=4 face=Arial>" &FormatDateTime(objtime,vbShortTime)& "</TD><TD><Font color=black size=4 face=Arial> " & objMeeting&"</TD><TD>" & "<Font color=black size=4 face=Arial>" & objRoom & "</TD</TR>"
else
i = i - 1
Response.Write "<TR bgcolor=#3E797D><TD><Center><Font color=F5F5F5 size=4 face=Arial>" & FormatDateTime(objtime,vbShortTime)& "</TD><TD><Font color=F5F5F5 size=4 face=Arial>" & objMeeting&"</TD><TD><Font color=F5F5F5 size=4 face=Arial>"&objRoom&"</TD</TR>"
End IF
RS.MoveNext
count = count + 1
Loop
I'd appreciate help immensly.
Thanks
Eric