Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

difference between IIS 5.0 and PWS 4.0 ???

Status
Not open for further replies.

Sheffield

Programmer
Joined
Jun 1, 2001
Messages
180
Location
US
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?

Code:
<%
  strPath = &quot;\business\pics&quot;

  Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
  Set folder = fso.GetFolder(Server.Mappath(strPath))
  Set files = folder.Files

  For Each file in Files
      Response.Write file.Name & &quot;<BR>&quot;	
  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:-)
 
Just a debuggin sugestion. take out the loop and do a response.write on the files value and see what you get?
is it a huge number?


Jason Rich Cook -- &quot;Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top