Connect with Expertise | Find Experts, Get Answers, Share Insights

Unable to read files in directory

Kay
 
Posts: n/a
#1: Oct 13 '05
IIS cannot read files in a directory reporting that :

Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'Fso.GetFolder'

This has to do with Scripting.FileSystemObject.
I make sure the scrrun.dll is properly registered with regsvr32.
Still the problem persists.

Previously I do not know what I did right once in permission setting and
managed to display the said files but it went away after tweaking the
permission for make other functions available.

I scoured the web and this problem is a perrenial one. Many many suggestions
have been made even in expertsexchange site but no real solution. I don't
understand why it is so difficult to have this file system service up and
running.

Can some experts who have the answer please help?

------------------------------------------------------------



Ray Costanzo [MVP]
 
Posts: n/a
#2: Oct 14 '05

re: Unable to read files in directory


Can you post the code in which you dim and instantiate this "Fso" variable?
Or just post a good snippet of the relevant code?

Ray at home

"Kay" <sourcing@foranswer.com> wrote in message
news:dilrfo$2nh$1@mawar.singnet.com.sg...[color=blue]
> IIS cannot read files in a directory reporting that :
>
> Microsoft VBScript runtime (0x800A01B6)
> Object doesn't support this property or method: 'Fso.GetFolder'
>
> This has to do with Scripting.FileSystemObject.
> I make sure the scrrun.dll is properly registered with regsvr32.
> Still the problem persists.
>
> Previously I do not know what I did right once in permission setting and
> managed to display the said files but it went away after tweaking the
> permission for make other functions available.
>
> I scoured the web and this problem is a perrenial one. Many many
> suggestions
> have been made even in expertsexchange site but no real solution. I don't
> understand why it is so difficult to have this file system service up and
> running.
>
> Can some experts who have the answer please help?
>
> ------------------------------------------------------------
>
>[/color]


Kay
 
Posts: n/a
#3: Oct 14 '05

re: Unable to read files in directory


-------------- CODE----------------------------------------
'UPLOAD_PATH is also correct using response.write
response.write UPLOAD_PATH

Set Fso = Server.CreateObject("Scripting.FileSystemObject")

If Not Fso.FolderExists(UPLOAD_PATH) Then
Fso.CreateFolder (UPLOAD_PATH) ' error here
End If

Set Folder = Fso.getFolder(UPLOAD_PATH) 'error here also

dim Fso does not help
-------------------------------------------------------------

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eLQU1PF0FHA.3660@TK2MSFTNGP15.phx.gbl...[color=blue]
> Can you post the code in which you dim and instantiate this "Fso"[/color]
variable?[color=blue]
> Or just post a good snippet of the relevant code?
>
> Ray at home
>
> "Kay" <sourcing@foranswer.com> wrote in message
> news:dilrfo$2nh$1@mawar.singnet.com.sg...[color=green]
> > IIS cannot read files in a directory reporting that :
> >
> > Microsoft VBScript runtime (0x800A01B6)
> > Object doesn't support this property or method: 'Fso.GetFolder'
> >
> > This has to do with Scripting.FileSystemObject.
> > I make sure the scrrun.dll is properly registered with regsvr32.
> > Still the problem persists.
> >
> > Previously I do not know what I did right once in permission setting and
> > managed to display the said files but it went away after tweaking the
> > permission for make other functions available.
> >
> > I scoured the web and this problem is a perrenial one. Many many
> > suggestions
> > have been made even in expertsexchange site but no real solution. I[/color][/color]
don't[color=blue][color=green]
> > understand why it is so difficult to have this file system service up[/color][/color]
and[color=blue][color=green]
> > running.
> >
> > Can some experts who have the answer please help?
> >
> > ------------------------------------------------------------
> >
> >[/color]
>
>[/color]


Ray Costanzo [MVP]
 
Posts: n/a
#4: Oct 14 '05

re: Unable to read files in directory


What is the error?

What is the exact text returned by response.write UPLOAD_PATH?

Ray at work

"Kay" <sourcing@foranswer.com> wrote in message
news:din6fh$428$1@mawar.singnet.com.sg...[color=blue]
> -------------- CODE----------------------------------------
> 'UPLOAD_PATH is also correct using response.write
> response.write UPLOAD_PATH
>
> Set Fso = Server.CreateObject("Scripting.FileSystemObject")
>
> If Not Fso.FolderExists(UPLOAD_PATH) Then
> Fso.CreateFolder (UPLOAD_PATH) ' error here
> End If
>
> Set Folder = Fso.getFolder(UPLOAD_PATH) 'error here also
>
> dim Fso does not help[/color]


Closed Thread