Discussion Locked

FSO.GetFile on Remote Server Share

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I hope someone can shed some light on this problem. Please be detailed as I can be slow! :)
I have a share on a remote server and a virtual directory pointing to it. The share is set up with
everyone having full access to it (though this will be changed!).
I want to create my own directory listing in ASP, but I keep getting an error:

Microsoft VBScript runtime error '800a004c'

Path not found

Here is part of my code:

'Get the physical path of the folder
Dim strRootFolderstrRootFolder = Server.MapPath("/")

'Obtain a folder object instance of the directory
Dim objFolder
Set objFolder = objFSO.GetFolder(strRootFolder)

The last line of the supplied code is where the error occurs. All research leads me to believe that
maybe the permissions may not be set up correctly, but we have tried everything we can think of.

A Windows 2000 domain controller is being used.

Something similar has been done, and the other share has directory browsing enabled so there was no
need to create an ASP for the directory listing. That one works fine. This one doesn't have directory
browsing enabled. Could this be the problem?

Please, again, I ask you to be specific if possible when responding.

6 replies

by chrandrob

The solution is not very straightforward. My answer comes direct from: http://support.microsoft.com/support/kb/articles/Q197/9/64.ASP and the other references suggested on this page.

RESOLUTION:
Disable password synchronization for the Internet Information Server 4.0 application. For IIS 5.0, do not allow IIS to control the password. To do this, perform the following steps:

1. Open the Internet Service(s) Manager.
2. Edit the Properties of the application.
3.On the Directory Security tab, edit Anonymous Access and Authentication Control.
4.Edit the Account used for Anonymous Access.
5. In IIS 4.0, clear the Enable Automatic Password Synchronization check box.

In IIS 5.0, clear the Allow IIS to control password check box.

NOTE: If you are using a Windows 2000 domain controller or a Windows NT 4.0 primary domain controller (PDC), you must use a domain account instead of using the IUSR_ComputerName account. You may have to wait for the domain to synchronize before that account becomes available.

by agibbs

I bet it's one of two problems . . .

1. Make sure that your call to server.mappath(/) is actually returning the correct UNC path to the share on your other server. It may be returning something like c:\inetpub\wwwroot\ instead of \\server\share

2. Permissions. If IIS is configured to use the default IUSR_ account for anonymous access, remember that the IUSR_ account is a LOCAL account, not a domain account. Even if Everyone has access to the virtual directory on the other server, your IIS machine's local IUSR account may not be included. To fix this, change the IIS anonymous logon account to a domain account & grant that account permissions to the virtual directory.

Later,
Aaron

This discussion is closed to new replies.