Greetings,
I am able to successfully run the following code snippet on PWS on NT 4.0, but not on IIS 5.0 running on Win2000 Pro.
I've believe the problem is with the 'GetFolder' method, but I can't imagine why. I did verify that the folders 'business\pics' both exist.
Does anyone have an idea why?
This is the IIS error I receive.
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.
I welcome any and all responses.
Thanks
I am able to successfully run the following code snippet on PWS on NT 4.0, but not on IIS 5.0 running on Win2000 Pro.
I've believe the problem is with the 'GetFolder' method, but I can't imagine why. I did verify that the folders 'business\pics' both exist.
Does anyone have an idea why?
Code:
<%
strPath = "\business\pics"
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder(Server.Mappath(strPath))
Set files = folder.Files
For Each file in Files
Response.Write file.Name & "<BR>"
Next
Set files = folder.Files
Set file = Nothing
Set fso = Nothing
%>
This is the IIS error I receive.
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.
I welcome any and all responses.
Thanks
