467,858 Members | 1,699 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,858 developers. It's quick & easy.

fso fails when connecting to mapped drives from asp on IIS 6.0


I've seen posts similar to this, but have not found the magic bullet to
solve my problem..

I have an asp page (see source code below) running on IIS 6.0 on
Win2003 Server that tries to get file and folder information on a
Novell Server. I am able to successfully connect to the share on the
Novell box if I use the UNC path. But, unfortunately, I need to have
the mapped path for my application. I created a simple vbs script and
saved it to the server desktop and run it to verify connectivity to the
Novell box. I am logged in to the server with the same user as set up
in my website as the anonymous user. The vbs file runs perfectly. But
as soon as I move the code into an asp file, I get the following error
"Microsoft VBScript runtime error '800a004c' Path not found". If I
go into my asp file and change the path to the novell box to a UNC
format, then it works. Below is the asp file:

<%
dim fso, fil, fldr, sbfldr

set fso = server.CREATEOBJECT("Scripting.FileSystemObject")

set fldr = fso.getfolder("g:\doc_test")

for each sbfldr in fldr.subfolders
response.write sbfldr.name & "<br>"
next
%>

At this point, I don't feel like it's an authentication issue because I
can get it to work with UNC. Any help is greatly appreciated.

--
lhansen
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message988327.html

Jul 22 '05 #1
  • viewed: 2656
Share:
1 Reply
Your mapped drive is created under YOUR account. The ASP page is running as
IUSR_MachineName, so has no idea what G:\ is. So, you can change IIS to run
ASP pages under this application as you (change the anonymous user), or you
can have a background task that mirrors the remote folder to your local
machine. Changes made on the remote server are replicated to your machine,
and vice versa (I'm not sure I understand which task your app is supposed to
perform).


On 3/30/05 4:28 PM, in article lh************@mail.webservertalk.com,
"lhansen" <lh************@mail.webservertalk.com> wrote:

I've seen posts similar to this, but have not found the magic bullet to
solve my problem..

I have an asp page (see source code below) running on IIS 6.0 on
Win2003 Server that tries to get file and folder information on a
Novell Server. I am able to successfully connect to the share on the
Novell box if I use the UNC path. But, unfortunately, I need to have
the mapped path for my application. I created a simple vbs script and
saved it to the server desktop and run it to verify connectivity to the
Novell box. I am logged in to the server with the same user as set up
in my website as the anonymous user. The vbs file runs perfectly. But
as soon as I move the code into an asp file, I get the following error
"Microsoft VBScript runtime error '800a004c' Path not found". If I
go into my asp file and change the path to the novell box to a UNC
format, then it works. Below is the asp file:

<%
dim fso, fil, fldr, sbfldr

set fso = server.CREATEOBJECT("Scripting.FileSystemObject")

set fldr = fso.getfolder("g:\doc_test")

for each sbfldr in fldr.subfolders
response.write sbfldr.name & "<br>"
next
%>

At this point, I don't feel like it's an authentication issue because I
can get it to work with UNC. Any help is greatly appreciated.

--
lhansen
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message988327.html


Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by lastusernameleft | last post: by
2 posts views Thread by giloosh99 | last post: by
3 posts views Thread by Bonj | last post: by
1 post views Thread by Jim Heavey | last post: by
4 posts views Thread by Matt Dockerty | last post: by
reply views Thread by Jeff B. Jr | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.