473,414 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Server.ScriptTimeout in IIS with ASP



Hi,

I created ASP page with following sourcecode.

<%@ language="VBSCRIPT" %>
<!--#include file="./configuration/code_nofile.asp"-->
<!-- Author: Jo Becaus
-->
<HTML>
<HEAD>
<TITLE>Infrastructure_Team</TITLE>
<LINK href="mrtg.css" rel=stylesheet type=text/css>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="Damovo Belgium" name="Jo Becaus"></HEAD>
<BODY marginwidth="1">
<DIV id=Clock align=right style="COLOR: #ffffff; FONT-FAMILY: Verdana;
FONT-SIZE: 11px"></DIV>
<SCRIPT language="javascript">
function mouse_over(td_name)
{

if(eval("this." + td_name)!= null)
{
if (td_name != name)
{
eval("this['" + td_name + "'].bgColor='#ff0000'")
}
}
}

function mouse_out(td_name)
{

if(eval("this." + td_name)!= null)
{
if (td_name != name)
{
eval("this['" + td_name + "'].bgColor='#cccccc'")
}
}
}
</SCRIPT>
<SPAN style="CURSOR: hand">
<TABLE bgColor=#cccccc border=0 cellPadding=2 cellSpacing=1 width=186>
<TBODY>
<TR bgcolor=#ffffff
onclick="window.open('home.asp','rContent')"
onmouseout="mouse_out('HomePage')"
onmouseover="mouse_over('HomePage')">
<TD bgColor=#cccccc id=HomePage height=14 width=14
bordercolor=#cccccc>&nbsp;</TD>
<TD bordercolor=#c0c0c0 height=14 width=195><FONT color=black
size=1>Damovo SNMP Home</TD></TR>
</TBODY>
</TABLE>
<BR>
<HR>
<BR>
</SPAN>
<!-- --><!-- Start Main Menu --><!-- -->
<SPAN style="CURSOR: hand">
<TABLE bgColor=#cccccc border=0 cellPadding=2 cellSpacing=1 height=14
width=180>
<TBODY>
<TR
onclick="window.open('configuration/config.asp','rContent')"
onmouseout="mouse_out('Configuration')"
onmouseover="mouse_over('Configuration')">
<TD bgColor=#cccccc height=14 id=Configuration
width=14>&nbsp;</TD>
<TD bgColor=#ffffff height=14 width=186><FONT
size=1>Configuration</FONT></TD></TR>
</TR>
<TR
onmouseout="Sites_sub.style.visibility =
'hidden';mouse_out('Sites')"
onmouseover="Sites_sub.style.visibility =
'visible';mouse_over('Sites')">
<TD bgColor=#cccccc height=14 id=Sites width=14>&nbsp;</TD>
<TD bgColor=#ffffff height=14 width=186><FONT size=1>Sites
Monitoring</FONT></TD></TR>
</TBODY>
</TABLE>
</SPAN>

<!-- SubMenu's-->
<SPAN style="CURSOR: hand">
<DIV id=Sites_sub
onmouseout ="Sites_sub.style.visibility = 'hidden';mouse_out('Sites')"
onmouseover ="Sites_sub.style.visibility =
'visible';mouse_over('Sites')"
style="background-color: #999999; height: 10; left: 60; position:
absolute; top: 100; visibility: hidden; width: 10; z-index: 4;
layer-background-color: #999999">
<TABLE bgcolor=#cccccc border=0 cellpadding=2 cellspacing=1
width=140 height=<%=ObjDict.Count*14%>>
<TBODY>
<%
Dim i
i = 1
Do
Response.Write "<TR onmouseout=""" & ObjDict.Item(i) &
"_Sub.style.visibility = 'hidden';mouse_out('" & ObjDict.Item(i) &
"')"""
Response.Write "onmouseover=""" & ObjDict.Item(i) &
"_Sub.style.visibility = 'visible';mouse_over('" & ObjDict.Item(i) &
"')>"""
Response.Write "<TD bgColor=#cccccc height=14 id=" &
ObjDict.Item(i) & " width=30>&nbsp;</TD>"
Response.Write "<TD bgColor=#ffffff height=14 width=200><FONT
size=1>" & ObjDict.Item(i) & "</FONT></TD></TR>"
i = i + 1
Loop Until i < ObjDict.Count
%>
</TBODY>
</TABLE>
</DIV>
</SPAN>
This is the code from the include file:

<%
Public objDict
Dim ObjFSO, objFolder
Const Folder = "C:\WWW\MRTG\Configuration\Devices\"
Set ObjDict = CreateObject("Scripting.Dictionary")
Set ObjFSO = CreateObject("Scripting.FileSystemObject")
Call ShowSubFolders (objFSO.GetFolder(Folder))

Function ShowSubFolders(Folder)
Count = 0
For Each Subfolder in Folder.SubFolders
MyFoldArray = Split(Subfolder.path,"\",-1,1)
If ShowFiles(SubFolder,MyFoldArray(5)) Then
Count = Count + 1
objDict.Add Count, MyFoldArray(5)
End If
Next
Set objFSO = Nothing
Set FolderFile = Nothing
End Function

Function ShowFiles(FolderSpec,ParentFolder)
Dim Filec,FileCount,FileEx,Counter,FileName
Set Files = objFSO.GetFolder(FolderSpec)
Set FileCount = files.Files
For Each FileEx in FileCount
If lcase(FileEx.Type) = "cfg file" Then
Counter = Counter + 1
End If
Next
If Counter > 0 Then
ShowFiles = True
Else
ShowFiles = False
End If
End Function
%>

When putting a Response.write with the Dictionary values and open de
include file direct all is fine.

But when I run the menu.asp file which has the file included I get a
timeout?

Even when I extend the IIS timeout value to hours I never receive a
value nor data?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
1 2724
http://www.aspfaq.com/2180

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Jo Becaus" <be******@msn.com> wrote in message
news:#M**************@TK2MSFTNGP09.phx.gbl...


Hi,

I created ASP page with following sourcecode.

<%@ language="VBSCRIPT" %>
<!--#include file="./configuration/code_nofile.asp"-->
<!-- Author: Jo Becaus
-->
<HTML>
<HEAD>
<TITLE>Infrastructure_Team</TITLE>
<LINK href="mrtg.css" rel=stylesheet type=text/css>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="Damovo Belgium" name="Jo Becaus"></HEAD>
<BODY marginwidth="1">
<DIV id=Clock align=right style="COLOR: #ffffff; FONT-FAMILY: Verdana;
FONT-SIZE: 11px"></DIV>
<SCRIPT language="javascript">
function mouse_over(td_name)
{

if(eval("this." + td_name)!= null)
{
if (td_name != name)
{
eval("this['" + td_name + "'].bgColor='#ff0000'")
}
}
}

function mouse_out(td_name)
{

if(eval("this." + td_name)!= null)
{
if (td_name != name)
{
eval("this['" + td_name + "'].bgColor='#cccccc'")
}
}
}
</SCRIPT>
<SPAN style="CURSOR: hand">
<TABLE bgColor=#cccccc border=0 cellPadding=2 cellSpacing=1 width=186>
<TBODY>
<TR bgcolor=#ffffff
onclick="window.open('home.asp','rContent')"
onmouseout="mouse_out('HomePage')"
onmouseover="mouse_over('HomePage')">
<TD bgColor=#cccccc id=HomePage height=14 width=14
bordercolor=#cccccc>&nbsp;</TD>
<TD bordercolor=#c0c0c0 height=14 width=195><FONT color=black
size=1>Damovo SNMP Home</TD></TR>
</TBODY>
</TABLE>
<BR>
<HR>
<BR>
</SPAN>
<!-- --><!-- Start Main Menu --><!-- -->
<SPAN style="CURSOR: hand">
<TABLE bgColor=#cccccc border=0 cellPadding=2 cellSpacing=1 height=14
width=180>
<TBODY>
<TR
onclick="window.open('configuration/config.asp','rContent')"
onmouseout="mouse_out('Configuration')"
onmouseover="mouse_over('Configuration')">
<TD bgColor=#cccccc height=14 id=Configuration
width=14>&nbsp;</TD>
<TD bgColor=#ffffff height=14 width=186><FONT
size=1>Configuration</FONT></TD></TR>
</TR>
<TR
onmouseout="Sites_sub.style.visibility =
'hidden';mouse_out('Sites')"
onmouseover="Sites_sub.style.visibility =
'visible';mouse_over('Sites')">
<TD bgColor=#cccccc height=14 id=Sites width=14>&nbsp;</TD>
<TD bgColor=#ffffff height=14 width=186><FONT size=1>Sites
Monitoring</FONT></TD></TR>
</TBODY>
</TABLE>
</SPAN>

<!-- SubMenu's-->
<SPAN style="CURSOR: hand">
<DIV id=Sites_sub
onmouseout ="Sites_sub.style.visibility = 'hidden';mouse_out('Sites')"
onmouseover ="Sites_sub.style.visibility =
'visible';mouse_over('Sites')"
style="background-color: #999999; height: 10; left: 60; position:
absolute; top: 100; visibility: hidden; width: 10; z-index: 4;
layer-background-color: #999999">
<TABLE bgcolor=#cccccc border=0 cellpadding=2 cellspacing=1
width=140 height=<%=ObjDict.Count*14%>>
<TBODY>
<%
Dim i
i = 1
Do
Response.Write "<TR onmouseout=""" & ObjDict.Item(i) &
"_Sub.style.visibility = 'hidden';mouse_out('" & ObjDict.Item(i) &
"')"""
Response.Write "onmouseover=""" & ObjDict.Item(i) &
"_Sub.style.visibility = 'visible';mouse_over('" & ObjDict.Item(i) &
"')>"""
Response.Write "<TD bgColor=#cccccc height=14 id=" &
ObjDict.Item(i) & " width=30>&nbsp;</TD>"
Response.Write "<TD bgColor=#ffffff height=14 width=200><FONT
size=1>" & ObjDict.Item(i) & "</FONT></TD></TR>"
i = i + 1
Loop Until i < ObjDict.Count
%>
</TBODY>
</TABLE>
</DIV>
</SPAN>
This is the code from the include file:

<%
Public objDict
Dim ObjFSO, objFolder
Const Folder = "C:\WWW\MRTG\Configuration\Devices\"
Set ObjDict = CreateObject("Scripting.Dictionary")
Set ObjFSO = CreateObject("Scripting.FileSystemObject")
Call ShowSubFolders (objFSO.GetFolder(Folder))

Function ShowSubFolders(Folder)
Count = 0
For Each Subfolder in Folder.SubFolders
MyFoldArray = Split(Subfolder.path,"\",-1,1)
If ShowFiles(SubFolder,MyFoldArray(5)) Then
Count = Count + 1
objDict.Add Count, MyFoldArray(5)
End If
Next
Set objFSO = Nothing
Set FolderFile = Nothing
End Function

Function ShowFiles(FolderSpec,ParentFolder)
Dim Filec,FileCount,FileEx,Counter,FileName
Set Files = objFSO.GetFolder(FolderSpec)
Set FileCount = files.Files
For Each FileEx in FileCount
If lcase(FileEx.Type) = "cfg file" Then
Counter = Counter + 1
End If
Next
If Counter > 0 Then
ShowFiles = True
Else
ShowFiles = False
End If
End Function
%>

When putting a Response.write with the Dictionary values and open de
include file direct all is fine.

But when I run the menu.asp file which has the file included I get a
timeout?

Even when I extend the IIS timeout value to hours I never receive a
value nor data?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Paul | last post by:
Any code that accesses the Server object appears to break, such as: Set conn = Server.CreateObject("ADODB.Connection") OR Response.Write(Server.ScriptTimeout & " seconds") Thanks Paul ***...
5
by: Bryan | last post by:
I'm looking for a definitive answer to a Server.ScriptTimeout question. if I add <% Server.ScriptTimeout = 300 %> to a page, does that then alter the default 90 second script timeout for ALL...
4
by: A.S. | last post by:
I have an app that gets data from SQL Server and writes it to a csv file. My problem is that my query returns 25K + records. IE seems to 'hang' and the csv file never gets created. Any Ideas how I...
3
by: Hermes | last post by:
Hi All, Is there a way to specify the server timeout for IIS in an asp file rather than with IIS. As I would just want one page to have a long timeout period but limit the other pages in the...
0
by: g_sharad | last post by:
Hi I am trying to use the server.scriptimeout for my asp code for sending the mails to my 1000 odd subscribers But after approx 150 records the script gives an error... saying pls reset the...
6
by: Anthony Williams | last post by:
Hi all, Am I right in thinking that if I set Server.ScriptTimeout to, say, 600 that every request for an .ASPX page will wait up to 600 seconds before responding with a "Request Timed Out"...
1
by: Chris | last post by:
I've created an aspx page that should time out every time it is executed, yet it never does. It seems as though the value of Server.ScriptTimeout is just being ignored by asp.net - I've also set...
0
by: srt | last post by:
Hi, I have some problems with setting Server.ScriptTimeout. The posted script doesn't stop after 120 seconds (the timestamps are displayed after the 120 seconds and I stopped the server after 5...
20
by: =?Utf-8?B?SnVzdGluIERvaA==?= | last post by:
"Active Server Pages error 'ASP 0113' Script timed out" I am still getting this error, and I am not sure how I could fix this. When I execute the query at SQL 2005, it only takes 8 seconds....
3
by: =?Utf-8?B?SnVzdGluIERvaA==?= | last post by:
I am constantly getting the 'Script timed out' error, and would like to see if there is any way I could modify the ASP page. I think I did all I could to improved the performance at the database...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.