目录浏览在PWS中工作,但不在IIS5中工作 [英] directory browsing works in PWS but not IIS5
问题描述
大家好
我有一个页面* *应该*列出服务器上的目录。
这里是代码.. 。
folderspec = server.MapPath(&.; ./ images /")
set fso = CreateObject(" Scripting.FileSystemObject")
设置fold = fso.GetFolder(folderspec)
$ ftb中每个子文件夹的
Response.Write(subfolder.name&"< ; br>")
next
set fold = no
set fso = nothing
该代码在Win98 / PWS上完美运行,但在XP Pro / IIS上引起了一些非常奇怪的事件
。要么它进入一个循环,并挂起服务器,导致我必须重置
。或者它将通过动作,我得到底部的蓝色条形图,它消失了,Done在状态栏中说道,并且页面没有改变
。这很奇怪......
我认为它与权限有关但不确定?
任何帮助表示感谢,
干杯
Dan
Hi guys
I have a page that is *supposed* to list the directories on the server.
Here''s the code...
folderspec = server.MapPath("./images/")
set fso = CreateObject("Scripting.FileSystemObject")
set fold = fso.GetFolder(folderspec)
for each subfolder in fold.subFolders
Response.Write(subfolder.name & "<br>")
next
set fold = nothing
set fso = nothing
The code works perfectly on Win98 / PWS but causes some very odd occurances
on XP Pro / IIS. Either it gets in a loop, and hangs the server, causing me
to have to reset. Or it will go through the motions, I get the blue bar at
the bottom, it goes away, says Done in the status bar, and the page hasnt
changed. It''s weird...
I assume it''s something to do with permissions but not sure?
Any help appreciated,
Cheers
Dan
推荐答案
嗨
调试应用程序并找出它被吊死的地方
干杯
Pravin Patil
Hi
Debug the application and find out where it is getting hanged
Cheers
Pravin Patil
嗨Pravin
它在文件中有调试信息作为response.writes到处。
不幸的是IIS似乎根本没有运行该文件,即你单击链接
到它,它执行蓝色条并且不会更改页面。因此,我不知道在哪里,不知道它在哪里。
干杯
Dan
" Pravin Patil" < PR ****** @ mastek.com>在消息中写道
新闻:9F ********************************** @ microsof t.com ...
Hi Pravin
It has debug information in the file as response.writes all over the place.
Unfortunately IIS doesnt seem to run the file at all, ie you click the link
to it and it does the blue bar and doesnt change the page. Therefore I have
no idea where it''s getting to unfortunately.
Cheers
Dan
"Pravin Patil" <pr******@mastek.com> wrote in message
news:9F**********************************@microsof t.com...
调试应用程序并找出它被挂起的地方。
干杯,
Pravin Patil
Hi,
Debug the application and find out where it is getting hanged.
Cheers,
Pravin Patil
" Dan Nash"在留言新闻中写道:eq ************** @ TK2MSFTNGP12.phx.gbl ...
:嗨Pravin
:
:它在文件中有调试信息作为response.writes遍布
的地方。
:不幸的是,IIS似乎没有运行该文件所有,即你点击
链接
:到它并且它执行蓝色条并且不会更改页面。所以我
有
:不知道它到底在哪里。
那将是'''很难做到。你没有提供链接。 (O:=
-
Roland Hall
/ *此信息的分发是希望它有用,但
没有任何保证;甚至没有适销性的暗示保证
或特定用途的适用性。* /
Technet脚本中心 - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6文档 - http:// msdn .microsoft.com / downloads / list / webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
"Dan Nash" wrote in message news:eq**************@TK2MSFTNGP12.phx.gbl...
: Hi Pravin
:
: It has debug information in the file as response.writes all over the
place.
: Unfortunately IIS doesnt seem to run the file at all, ie you click the
link
: to it and it does the blue bar and doesnt change the page. Therefore I
have
: no idea where it''s getting to unfortunately.
That''s gonna'' be tough to do. You didn''t provide a link. (O:=
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
这篇关于目录浏览在PWS中工作,但不在IIS5中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!