Microsoft VBScript runtime error '800a004c'

J

john d

I have an IIS 5.0 server with a Virtual Directory called test. This virtual
directory points to a share on the network, \\server1\share\ and uses a valid
domain account in the "Connect As" field.

From an IE browser, you can access the virtual directory without a problem.
However, when referencing the virtual diretory in an asp page, the following
error is received:

Microsoft VBScript runtime error '800a004c'

Path not found

/Folder1/webpage.asp, line 10


Line 10 is where the virtual directory is referenced.

I have tried changing the network share permission to Full access for
EVERYONE, but that did not work. I also changed the "Connect As" credentials
to an administrator account, but again without an luck. I have tested this
on two other web servers, 1 works and 1 doesn't, but I can't find any
differences in their IIS Settings.

Does anyone have any ideas??
 
J

john d

It is as follows:

dim fso,f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder( "\\server1\share\")
 
R

Ray Costanzo [MVP]

Although you have that share setup as a virtual directory with logon
credentials, when you attempt to access it that way, the logon credentials
for the virtual directory are in no way connected or relevant. Instead,
what you're doing is executing code that is running under your
IUSR_computername account (presumedly), and trying to access a network
share. You will have to use some other means of accessing that share, such
as by synchronizing IUSR_ accounts, manually, using a domain account for the
site/app/page that runs this code, or using basic authentication and using
your users' security tokens for accessing the share.

Take a look at the "If the file is within your LAN" section of
http://www.aspfaq.com/show.asp?id=2168

Ray at work
 
J

john d

How can I make the login credentials in the "Connect As" of that virtual
directory relevant in the code? If I attempt to access the virtual directory
directly, http:\\iisserver\test, I have no problem accessing the conntents of
\\server1\share\.

Syncing IUSR accounts is not an option in this specific case.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top