Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Unable to read files in directory

Reply
Thread Tools

Unable to read files in directory

 
 
Kay
Guest
Posts: n/a
 
      10-13-2005
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?

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


 
Reply With Quote
 
 
 
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      10-14-2005
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" <> wrote in message
news:dilrfo$2nh$...
> 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?
>
> ------------------------------------------------------------
>
>



 
Reply With Quote
 
 
 
 
Kay
Guest
Posts: n/a
 
      10-14-2005
-------------- 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:...
> 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" <> wrote in message
> news:dilrfo$2nh$...
> > 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?
> >
> > ------------------------------------------------------------
> >
> >

>
>



 
Reply With Quote
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      10-14-2005
What is the error?

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

Ray at work

"Kay" <> wrote in message
news:din6fh$428$...
> -------------- 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski ASP .Net 2 09-06-2007 03:58 PM
Dynamicaly read a directory & its sub-directory. akrashid@gmail.com HTML 4 01-26-2007 05:48 PM
Re: Unable to read video DVDs and can read Data DVDs Biz DVD Video 0 07-22-2005 03:44 AM
Text files read multiple files into single file, and then recreate the multiple files googlinggoogler@hotmail.com Python 4 02-13-2005 05:44 PM
Unable to read Active Directory data from a web part - Unknown error (0x80005000) Arthur Penn ASP .Net Security 4 01-12-2004 08:59 PM



Advertisments