Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Component Method does not work

Status
Not open for further replies.

avantgd

Programmer
Jan 22, 2002
16
US
I am runnig IIS 5.0 on my Windows XP machine for development purposes, specifically ASP.

WHen I run the following code:

strThisPage = request.ServerVariables("Path_Translated")
Set filesys = CreateObject("Scripting.FileSystemObject")
strDir = filesys.GetParentFolderName(strThisPage)
Set dir = filesys.GetFolder(strDir)

I receive the following error at the last line:
* Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'GetFolder'
/ac_library/text_samples/index.asp, line 48

I can run this fine on our production server. I am stumped as to what could be the problem and would appreciate some expert IIS advice.

Thank you.
 
Do you have permissions on the folder to be able to get the files...
and do a response.write on
the dir to see what it is trying to get from..and check that the files are on that directory and the directory exists

Set dir = filesys.GetFolder(strDir
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top