473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
1 2839
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MC | last post by:
Hi all, I've read the various posts concerning file access on mapped drives--I think problem is different: The problem: Open a VB Winforms project from a mapped drive and all files open fine...
36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
2
by: lastusernameleft | last post by:
Is there a .NET method for doing this? I haven't found anything else that works. Thanks
2
by: giloosh99 | last post by:
Hello, Im grabbing tables via VB code using visual foxpro ODBC drives. The tables directory is in a mapped network drive. The code works fine and does the job, however if the computer is idle for...
3
by: Bonj | last post by:
I have a service which is a Windows Service, but it is running under a User account - I enter my own credentials on installing. It can access network files by specifying the full UNC path, i.e....
1
by: Jim Heavey | last post by:
Hello, I have a console application which I run from a server. When I remotely log on to the server and sumit the application it runs just fine. When I schedule the job and use my login ID and...
4
by: Matt Dockerty | last post by:
Hi, I'm trying to connect to a network share using a username / password / domain of my choosing. I've tried the WindowsIdentity.Impersonate route but can only impersonate the users on the...
0
by: Jeff B. Jr | last post by:
Hi, I have created a service that is used to run scheduled events. In oreder to do this, it needs to be able to access mapped drives. When it completes, it sends out an e-mail with the success...
5
by: Marc | last post by:
I am trying to run a web service that has pre-compiled dll's that reference dll's that are on a mapped drive. The web service can not load because it does not see that mapped drive and returns an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.