473,395 Members | 1,457 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,395 software developers and data experts.

directory browsing works in PWS but not IIS5

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
Jul 19 '05 #1
26 2446
Hi

Debug the application and find out where it is getting hanged

Cheers

Pravin Patil
Jul 19 '05 #2
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...
Hi,

Debug the application and find out where it is getting hanged.

Cheers,

Pravin Patil

Jul 19 '05 #3
"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
Jul 19 '05 #4
provide a link to what?

"Roland Hall" <nobody@nowhere> wrote in message
news:uW**************@tk2msftngp13.phx.gbl...
"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

Jul 19 '05 #5
"Dan Nash" wrote in message news:Oj*************@TK2MSFTNGP10.phx.gbl...
: 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

Will this make a difference?

This works for me:

<%@ Language=VBScript %>
<%
Option Explicit
Response.Buffer = True

Dim folderspec, fso, f, fc, fl
folderspec = Server.MapPath("/images")
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.SubFolders
For each fl in fc
Response.Write(fl.name & "<br />")
Next
Set fso = nothing
Set f = nothing
Set fc = nothing
%>

My images directory is one off the web root: http://domain.com/images

HTH...

--
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
Jul 19 '05 #6
"Dan Nash" <da********@musoswire.co.uk> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
: provide a link to what?
:
: > : 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.

We cannot see what you're seeing. You said, you click the link.
Jul 19 '05 #7
On Thu, 4 Mar 2004 11:10:55 -0000, "Dan Nash"
<da********@musoswire.co.uk> wrote:
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?


Take a look at:

http://www.devguru.com/Technologies/...ollection.html

Jeff
Jul 19 '05 #8
Hi Roland,

Fraid it doesn't. I've just tried your code and the same thing happens.
However, the first time forgot the <% and it just presented me with a load
of text (the code) on the page. So I know it's actually loading the page.

Can I ask how your image directory's permissions are setup? I've set my
directories to enable read/write/directory browsing, but still no luck.

Cheers
Dan
"Roland Hall" <nobody@nowhere> wrote in message
news:#W*************@TK2MSFTNGP11.phx.gbl...
"Dan Nash" wrote in message news:Oj*************@TK2MSFTNGP10.phx.gbl...
: 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

Will this make a difference?

This works for me:

<%@ Language=VBScript %>
<%
Option Explicit
Response.Buffer = True

Dim folderspec, fso, f, fc, fl
folderspec = Server.MapPath("/images")
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.SubFolders
For each fl in fc
Response.Write(fl.name & "<br />")
Next
Set fso = nothing
Set f = nothing
Set fc = nothing
%>

My images directory is one off the web root: http://domain.com/images

HTH...

--
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

Jul 19 '05 #9
Ahhh.. :o) No I was just trying to explain what happens when the link is
clicked. The site is on my local XP box.

Sorry for any confusion!! :o)

Cheers
Dan

"Roland Hall" <nobody@nowhere> wrote in message
news:uj**************@TK2MSFTNGP10.phx.gbl...
"Dan Nash" <da********@musoswire.co.uk> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
: provide a link to what?
:
: > : 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.

We cannot see what you're seeing. You said, you click the link.

Jul 19 '05 #10
Hi Jeff

Thanks for that. Have had a look and tried the code, and I still get the
same problem. Page just doesn't display (it stays on the page u were on).
Makes no sense....

"Jeff Cochran" <jc*************@naplesgov.com> wrote in message
news:40*****************@msnews.microsoft.com...
On Thu, 4 Mar 2004 11:10:55 -0000, "Dan Nash"
<da********@musoswire.co.uk> wrote:
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 occuranceson XP Pro / IIS. Either it gets in a loop, and hangs the server, causing meto have to reset. Or it will go through the motions, I get the blue bar atthe 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?
Take a look at:

http://www.devguru.com/Technologies/...ollection.html
Jeff

Jul 19 '05 #11
"Dan Nash" wrote in message news:%2***************@TK2MSFTNGP12.phx.gbl...
: Ahhh.. :o) No I was just trying to explain what happens when the link is
: clicked. The site is on my local XP box.

Ah, I was wrong. It wouldn't be difficult, it would be impossible! (O:=

: Sorry for any confusion!! :o)

I've been confused for years.
Jul 19 '05 #12
"Dan Nash" wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
: Fraid it doesn't. I've just tried your code and the same thing happens.
: However, the first time forgot the <% and it just presented me with a load
: of text (the code) on the page. So I know it's actually loading the page.
:
: Can I ask how your image directory's permissions are setup? I've set my
: directories to enable read/write/directory browsing, but still no luck.

Hi Dan...

Ok, try this link. This is the code I posted earlier.
http://guysare.us/lab/folders.asp

--
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
Jul 19 '05 #13
"Roland Hall" wrote in message
news:uN****************@TK2MSFTNGP11.phx.gbl...
: "Dan Nash" wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
: : Fraid it doesn't. I've just tried your code and the same thing happens.
: : However, the first time forgot the <% and it just presented me with a
load
: : of text (the code) on the page. So I know it's actually loading the
page.
: :
: : Can I ask how your image directory's permissions are setup? I've set my
: : directories to enable read/write/directory browsing, but still no luck.
:
: Hi Dan...
:
: Ok, try this link. This is the code I posted earlier.
: http://guysare.us/lab/folders.asp

If you're running this on XP, aren't you running IIS 5.1? You are loading
this from the virtual path and not from the physical path, right? I'm
asking because you said you ran it and saw code. It's all ASP VBScript, you
shouldn't see any code at all in the browser.

--
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
Jul 19 '05 #14
Do you know for sure if the local IUSR_<machinename> account has the
permissions to perform this action on that folder?
--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"Dan Nash" <da********@musoswire.co.uk> 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.

Cheers
Dan

"Pravin Patil" <pr******@mastek.com> wrote in message
news:9F**********************************@microsof t.com...
Hi,

Debug the application and find out where it is getting hanged.

Cheers,

Pravin Patil


Jul 19 '05 #15
Hi Roland,

Thanks. Right, let's see if we can get some sense out of this...

The code you sent me I tried, and it works on PWS but not on IIS. Very odd.
I am indeed running IIS 5.1 on XP as a local server, so there's nothing else
involved. and all the directories have the "directory browsing" enabled in
IIS. They don't however have "anonymous access" setup, although I have tried
this and it makes no difference.

As far as I can tell, it's either something to do with permissions, or the
location of the folder and server.mappath(). Im trying to display a list of
the folders in the following folder on the C drive...

c:\inetpub\wwwroot\darts\library\documents

... im doing it from an asp file in the \library directory, so, i would
assume mappath("./") would give me a list of what's in library, and
mappath("./documents/") or mappath("/documents/") would get me into the
folder I actually want. However. I've tried every possible combination I can
think of, to no avail.

Something else that might have something to do with it... I've never been
able to access the server from the rest of the network, like i can with PWS.
If i go to IE and do http://development/ (the machine name) I get nothing
and if i go to 10.0.0.1 (the xp machines net addy) i get an "unauthorized"
page. THAT makes me think the permissions are stuffed somewhere.......

Hope any/all/some of that is useful to you in solving this problem.

Thanks for your perciverance!
Dan
"Roland Hall" <nobody@nowhere> wrote in message
news:uj**************@TK2MSFTNGP11.phx.gbl...
"Roland Hall" wrote in message
news:uN****************@TK2MSFTNGP11.phx.gbl...
: "Dan Nash" wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
: : Fraid it doesn't. I've just tried your code and the same thing happens. : : However, the first time forgot the <% and it just presented me with a
load
: : of text (the code) on the page. So I know it's actually loading the
page.
: :
: : Can I ask how your image directory's permissions are setup? I've set my : : directories to enable read/write/directory browsing, but still no luck. :
: Hi Dan...
:
: Ok, try this link. This is the code I posted earlier.
: http://guysare.us/lab/folders.asp

If you're running this on XP, aren't you running IIS 5.1? You are loading
this from the virtual path and not from the physical path, right? I'm
asking because you said you ran it and saw code. It's all ASP VBScript, you shouldn't see any code at all in the browser.

--
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

Jul 19 '05 #16
as far as I can tell, yes. all directories have "directory browsing"
enabled, and at the moment they all have anonymous access, although that
doesnt seem to make a difference.

If you read my earlier post (today) in reply to Roland, there is a
permissions issue in that I cant access the IIS 5.1 server from any other
machine on my network.

Cheers
Dan

"Phillip Windell" <@.> wrote in message
news:eq**************@TK2MSFTNGP09.phx.gbl...
Do you know for sure if the local IUSR_<machinename> account has the
permissions to perform this action on that folder?
--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"Dan Nash" <da********@musoswire.co.uk> 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.

Cheers
Dan

"Pravin Patil" <pr******@mastek.com> wrote in message
news:9F**********************************@microsof t.com...
Hi,

Debug the application and find out where it is getting hanged.

Cheers,

Pravin Patil



Jul 19 '05 #17
"Dan Nash" wrote in message news:OU**************@TK2MSFTNGP11.phx.gbl...
: Hi Roland,

Hi Dan... great information.

: Thanks. Right, let's see if we can get some sense out of this...
I'm ready! (O:=

: The code you sent me I tried, and it works on PWS but not on IIS. Very
odd.
: I am indeed running IIS 5.1 on XP as a local server, so there's nothing
else
: involved. and all the directories have the "directory browsing" enabled in
: IIS.
You do not need nor do you want directory browsing. This will make all of
your server-side code available to anyone unless you have a default document
in the subdirectory. We can go over that later.

: They don't however have "anonymous access" setup, although I have tried
: this and it makes no difference.
You set the anonymous user access at the site level in Internet Services
Manager. It is located on the Directory Security tab, click edit under
Anonymous Access and Authentication Control, then click to check Anonymous
Access to make sure it is enabled. Click Edit under that heading and make
sure the user is iusr_computername (mine is iusr_fs1) and check to allow
IIS, if it is not already checked, to control the password. It makes this
change in the user settings for the iusr_computername account.

If any of these are not set, I need to know which ones because if the
iusr_computername password has been changed, you may have to edit it the
first time but don't worry about it for now.

: As far as I can tell, it's either something to do with permissions, or the
: location of the folder and server.mappath(). Im trying to display a list
of
: the folders in the following folder on the C drive...
:
: c:\inetpub\wwwroot\darts\library\documents
:
: .. im doing it from an asp file in the \library directory, so, i would
: assume mappath("./") would give me a list of what's in library, and
: mappath("./documents/") or mappath("/documents/") would get me into the
: folder I actually want. However. I've tried every possible combination I
can
: think of, to no avail.

The permissions of the anonymous user account is one area and you have a
misunderstanding here.
The web root is:
virtual: /
physical: c:\inetpub\wwwroot

Server.MapPath works from the web root unless you specify the parent
directory (..).
So, using your paths listed above, let's make some corrections.
.. is a representation of the current directory.
... is a representation of the parent directory.
Server.MapPath works from either the web root, or from a directive (.) or
(..).
.. and .. are relative to the current directory and not relative from the
root.
Since / is always the web root, if you always start here, you always know
where you are. I never use current or parent directives.
So, if the documents directory physical path is:
c:\inetpub\wwwroot\darts\library\documents
.... then the virtual path is:
/darts/library/documents
To use Server.MapPath from the relative root, you address it as:
Server.MapPath("/darts/library/documents")
If you do it this way, you do not have to know which subdirectory you're
currently in.
For this to work:
Server.MapPath("./documents")
.... /darts/library has to be your current subdirectory.

: Something else that might have something to do with it... I've never been
: able to access the server from the rest of the network, like i can with
PWS.
: If i go to IE and do http://development/ (the machine name) I get nothing
: and if i go to 10.0.0.1 (the xp machines net addy) i get an "unauthorized"
: page. THAT makes me think the permissions are stuffed somewhere.......

Yes, this has to do with anonymous user access.

: Hope any/all/some of that is useful to you in solving this problem.
We're getting there.

: Thanks for your perciverance!
You're welcome.

--
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
Jul 19 '05 #18
Hi again,

Thanks for the advice - I've turned directory browsing off completely on all
directories now. My initial thought was that this was required to allow the
FSO to work, but since it isn't.. byebye!

I have set up anonymous access on all the directories, with the default
password and the control password thing checked. My machine is called
"!USR_DEVELOPMENT", and it still seems to be working fine locally. Still
can't access the machine from anywhere else though. I should point out that
"integrated windows authentification" is also checked.

But.. back to the main problem of directory browsing. Still can't get it to
work. Have tried the mappath's you suggested, but it still just sits there
for ages. It's almost like it in a semi-infinite loop, but when it ends it
hasn't changed the page. ANd as I said, can't add debug messages cos they
can't display.

tearing my hair out now!!

Thanks
Dan
"Roland Hall" <nobody@nowhere> wrote in message
news:OQ*************@TK2MSFTNGP09.phx.gbl...
"Dan Nash" wrote in message news:OU**************@TK2MSFTNGP11.phx.gbl...
: Hi Roland,

Hi Dan... great information.

: Thanks. Right, let's see if we can get some sense out of this...
I'm ready! (O:=

: The code you sent me I tried, and it works on PWS but not on IIS. Very
odd.
: I am indeed running IIS 5.1 on XP as a local server, so there's nothing
else
: involved. and all the directories have the "directory browsing" enabled in : IIS.
You do not need nor do you want directory browsing. This will make all of
your server-side code available to anyone unless you have a default document in the subdirectory. We can go over that later.

: They don't however have "anonymous access" setup, although I have tried
: this and it makes no difference.
You set the anonymous user access at the site level in Internet Services
Manager. It is located on the Directory Security tab, click edit under
Anonymous Access and Authentication Control, then click to check Anonymous
Access to make sure it is enabled. Click Edit under that heading and make
sure the user is iusr_computername (mine is iusr_fs1) and check to allow
IIS, if it is not already checked, to control the password. It makes this
change in the user settings for the iusr_computername account.

If any of these are not set, I need to know which ones because if the
iusr_computername password has been changed, you may have to edit it the
first time but don't worry about it for now.

: As far as I can tell, it's either something to do with permissions, or the : location of the folder and server.mappath(). Im trying to display a list
of
: the folders in the following folder on the C drive...
:
: c:\inetpub\wwwroot\darts\library\documents
:
: .. im doing it from an asp file in the \library directory, so, i would
: assume mappath("./") would give me a list of what's in library, and
: mappath("./documents/") or mappath("/documents/") would get me into the
: folder I actually want. However. I've tried every possible combination I
can
: think of, to no avail.

The permissions of the anonymous user account is one area and you have a
misunderstanding here.
The web root is:
virtual: /
physical: c:\inetpub\wwwroot

Server.MapPath works from the web root unless you specify the parent
directory (..).
So, using your paths listed above, let's make some corrections.
. is a representation of the current directory.
.. is a representation of the parent directory.
Server.MapPath works from either the web root, or from a directive (.) or
(..).
. and .. are relative to the current directory and not relative from the
root.
Since / is always the web root, if you always start here, you always know
where you are. I never use current or parent directives.
So, if the documents directory physical path is:
c:\inetpub\wwwroot\darts\library\documents
... then the virtual path is:
/darts/library/documents
To use Server.MapPath from the relative root, you address it as:
Server.MapPath("/darts/library/documents")
If you do it this way, you do not have to know which subdirectory you're
currently in.
For this to work:
Server.MapPath("./documents")
... /darts/library has to be your current subdirectory.

: Something else that might have something to do with it... I've never been : able to access the server from the rest of the network, like i can with
PWS.
: If i go to IE and do http://development/ (the machine name) I get nothing : and if i go to 10.0.0.1 (the xp machines net addy) i get an "unauthorized" : page. THAT makes me think the permissions are stuffed somewhere.......

Yes, this has to do with anonymous user access.

: Hope any/all/some of that is useful to you in solving this problem.
We're getting there.

: Thanks for your perciverance!
You're welcome.

--
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

Jul 19 '05 #19
"Dan Nash" wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
: Thanks for the advice - I've turned directory browsing off completely on
all
: directories now. My initial thought was that this was required to allow
the
: FSO to work, but since it isn't.. byebye!
:
: I have set up anonymous access on all the directories, with the default
: password and the control password thing checked. My machine is called
: "!USR_DEVELOPMENT", and it still seems to be working fine locally. Still
: can't access the machine from anywhere else though. I should point out
that
: "integrated windows authentification" is also checked.

If you right click on the default web site and set it there, you don't have
to do it anywhere else.

: But.. back to the main problem of directory browsing. Still can't get it
to
: work. Have tried the mappath's you suggested, but it still just sits there
: for ages. It's almost like it in a semi-infinite loop, but when it ends it
: hasn't changed the page. ANd as I said, can't add debug messages cos they
: can't display.
Well that's because we apparently still have a permissions issue or
something is blocking it.
Do you have the XP firewall enabled?

: tearing my hair out now!!
That's never a good idea.

--
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. */
Online Support for IT Professionals -
http://support.microsoft.com/service...p?fr=0&sd=tech
How-to: Windows 2000 DNS:
http://support.microsoft.com/default...b;EN-US;308201
Jul 19 '05 #20
> Do you have the XP firewall enabled?


No idea. How can I tell? And should be off?

Thanks
Dan
Jul 19 '05 #21
"Dan Nash" wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
: > Do you have the XP firewall enabled?
: >
:
: No idea. How can I tell? And should be off?

In your network settings under the Advanced tab. If it is checked, the
firewall is enabled. It is my understanding that when it is enabled you
cannot access the system from another computer across the subnet. I haven't
verified that but have seen posts to that effect.
Jul 19 '05 #22
Hiya

According to this... firewall is off!
"Roland Hall" <nobody@nowhere> wrote in message
news:#T*************@TK2MSFTNGP12.phx.gbl...
"Dan Nash" wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
: > Do you have the XP firewall enabled?
: >
:
: No idea. How can I tell? And should be off?

In your network settings under the Advanced tab. If it is checked, the
firewall is enabled. It is my understanding that when it is enabled you
cannot access the system from another computer across the subnet. I haven't verified that but have seen posts to that effect.

Jul 19 '05 #23
"Dan Nash" wrote in message news:u5**************@TK2MSFTNGP09.phx.gbl...
: Hiya
:
: According to this... firewall is off!

According to what?

Are you running any antivirus program on the system?
Jul 19 '05 #24
Hi Roland,

According to XPs Firewall tickbox thingy, the firewall isn't running. And
yes I'm running Norton AntiVirus on the system.

Anyway, regarding the initial issue of the directory browsing, I just wanted
to let you know that I ran the code on the Win2000 server that it was
designed to eventually run on, and it worked fine! Then we moved the whole
system to a new 2k3 server (it's new home) and it's running fine there too.

So there's definently some permissions problem on my XP machine.... I was
messing around in IIS all day yesterday and I've picked up a few things to
try, so gonna try that.

Thanks for your help, will keep you posted!

"Roland Hall" <nobody@nowhere> wrote in message
news:Or**************@TK2MSFTNGP09.phx.gbl...
"Dan Nash" wrote in message news:u5**************@TK2MSFTNGP09.phx.gbl...
: Hiya
:
: According to this... firewall is off!

According to what?

Are you running any antivirus program on the system?

Jul 19 '05 #25
"Dan Nash" wrote in message news:OA**************@TK2MSFTNGP09.phx.gbl...
: Hi Roland,
:
: According to XPs Firewall tickbox thingy, the firewall isn't running. And
: yes I'm running Norton AntiVirus on the system.

NAV can cause some issues with scripting but you would generally see those.
It's generally when it's trying to protect scripting on a server and it
hangs on the client because you need to interface with it on the server, but
you never see it because it's happening on the server. In your case, your
client and server are both running on XP. Now, if you have Norton Security,
and not just NAV or another personal firewall/IDS, i.e. like ZoneAlarm,
Norton Personal Firewall, ISS BlackICE PC Protection, etc... then these
could also interfere.

: Anyway, regarding the initial issue of the directory browsing, I just
wanted
: to let you know that I ran the code on the Win2000 server that it was
: designed to eventually run on, and it worked fine! Then we moved the whole
: system to a new 2k3 server (it's new home) and it's running fine there
too.

Terrific!

: So there's definently some permissions problem on my XP machine.... I was
: messing around in IIS all day yesterday and I've picked up a few things to
: try, so gonna try that.
:
: Thanks for your help, will keep you posted!

Sounds good.
Jul 19 '05 #26
No, I meant actual NTFS file system permissions. That has nothing to do with
IIS.

"Dan Nash" <da********@musoswire.co.uk> wrote in message
news:#J**************@tk2msftngp13.phx.gbl...
as far as I can tell, yes. all directories have "directory browsing"
enabled, and at the moment they all have anonymous access, although that
doesnt seem to make a difference.

If you read my earlier post (today) in reply to Roland, there is a
permissions issue in that I cant access the IIS 5.1 server from any other
machine on my network.

Cheers
Dan

"Phillip Windell" <@.> wrote in message
news:eq**************@TK2MSFTNGP09.phx.gbl...
Do you know for sure if the local IUSR_<machinename> account has the
permissions to perform this action on that folder?
--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"Dan Nash" <da********@musoswire.co.uk> 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.

Cheers
Dan

"Pravin Patil" <pr******@mastek.com> wrote in message
news:9F**********************************@microsof t.com...
> Hi,
>
> Debug the application and find out where it is getting hanged.
>
> Cheers,
>
> Pravin Patil



Jul 19 '05 #27

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

Similar topics

3
by: Stephen Green | last post by:
I'm using the code found at http://support.microsoft.com/?kbid=224364 called Creating a Directory Browsing Page Using ASP. The code works fine. I would like to find a way NOT to show hidden...
8
by: Opa | last post by:
Hi, Does anyone know how to get a list of files for a given directory from a given url. I have the following, but get an error indicating that URI formats are not supported. ...
1
by: Nut Cracker | last post by:
Hello, If anyone can point me to a good ASP based Control Panel for IIS5, I would be much obliged. I hacked together an ASP site for file uploads and sharing. Its very simple, and basically...
0
by: Tim Smith | last post by:
Dear All, Uncovered a problem with a home grown site replicator. We have directory browsing enabled to allow our remote clients to "dynamically discover" new files/directories (sites) we have...
4
by: david | last post by:
I basically use the following code to display the directory and file names in the WWWROOT, but can not show the virtual directory. ---- Dim path As String = Server.MapPath(x) Dim di As...
4
by: davidw | last post by:
For example, I have a virtual directory - "wfile", I would like user access http://mysite/wfile, but I want to handle it with my own code instead of turn on "Directory Browsing", how can I capture...
1
by: Steven J. Reed | last post by:
I am trying to find out is a folder exists within a share on a server. I can successfully determine if a file exists within the share, but I can't figure out how to determine if it's parent folder...
1
by: WolfsonNYC | last post by:
Anyone know how to enable Directory Browsing using the Cassini web server on .Net 2.0 ? Right now it says HTTP Error 403 - Forbidden when I go to a folder on my web site. Thanks, JW
2
by: Joe Kovac | last post by:
Hi! I have a Web Site, where I turned directory browsing off. I want only one sub folder to be browsable: e.g. MyApp/Files/... How do I do that? Any setting in the web.config? Thanks Joe
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.