Author |
Topic  |
|
rotorhead
Starting Member
7 Posts |
Posted - 06 June 2001 : 01:53:00
|
I didn't know this was possible, but for some reason, the following code (footer file) works on my hosting provider, but not on my Win2k box at home.
<% Dim PathInfo, PhysicalPath, FSO, FileObject, dlm
PathInfo=Request.ServerVariables("PATH_INFO") PhysicalPath=Server.MapPath(PathInfo)
Set FSO = CreateObject("Scripting.FileSystemObject")
Set FileObject = FSO.GetFile(PhysicalPath)
dlm = left(FileObject.DateLastModified, instr(FileObject.DateLastModified," "))
%>
Like I said, it's working fine on my hosting provider.. on my local test machine, it just takes forever to load and eventually bombs.
Can anyone offer assistance?
Darryl Hadfield |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 06 June 2001 : 04:12:29
|
You might response.write out PATH_INFO and see if it's what you expect on your local machine.
====== Doug G ====== |
 |
|
rotorhead
Starting Member
7 Posts |
Posted - 06 June 2001 : 21:58:08
|
quote:
You might response.write out PATH_INFO and see if it's what you expect on your local machine.
Okay.. I tried that and PATH_INFO returns the filename and path. When using the server.mappath(pathinfo) I get the explicit path (i.e. c:\inetpub) and filename of the .ASP file that contains the code - exactly what I would have expected.
When I un-comment the lines starting with 'Set Fileobject...' and 'dlm=...' it just hangs when I try to load it - the browser just seems to spin its wheels and go no-where. It's like it doesn't want to use the file system object at all. Once I do this once, and try to load the page with the full functionality, I cannot load the page again until I a) comment out the errant lines and re-save the .ASP file, and b) re-start IIS.
Does this sound like a problem you've encountered before? I'm stumped and cannot figure out what the heck is wrong.
Darryl Hadfield
Edited by - rotorhead on 06 June 2001 22:05:11 |
 |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 07 June 2001 : 03:07:33
|
Well, I don't know what would cause your problem. If you have InterDev you can debug through the asp code. My best guess is a permissions problem blocking the IUSR_xxxx user somewhere on your local machine.
Were you logged in as admin when you installed IIS on your W2K computer (assuming W2K Pro)? I had some wierd results once when I installed IIS on W2K as a normal user by accident.
====== Doug G ====== |
 |
|
rotorhead
Starting Member
7 Posts |
Posted - 23 June 2001 : 14:00:59
|
quote:
Well, I don't know what would cause your problem. If you have InterDev you can debug through the asp code. My best guess is a permissions problem blocking the IUSR_xxxx user somewhere on your local machine.
Were you logged in as admin when you installed IIS on your W2K computer (assuming W2K Pro)? I had some wierd results once when I installed IIS on W2K as a normal user by accident.
okay, figure this out! I re-installed Win2k on my box on June 10. Everything appeared to be working normally after that.
Last night, June 22, the same thing happened again.. Although I did get an error message on one attempt to access the local site -'800a01b6' - something about object does not support this method.
I checked the error on the MSKB, and it came back with something about object inheritance.. Wierd, since it indirectly pertains to what I'm doing, but the error never came back.
Help! Help! Help! The ghost is haunting my server!
Darryl Hadfield |
 |
|
|
Topic  |
|