473,769 Members | 7,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SRV2003, ASP and Network Drives

I have an ASP app that calls an object on the web server which goes out to a
mapped network drive to retrieve a file from a W2K file server. My current
web server is a W2K. The share on the file server as well as the NTFS
permissions on the server are wide open (Everyone Full Control) but still
require me to run the web server under an account other than the IUSR
account for the object to be able to access the file. None the less, it
works fine. However, when I run this same app on a W2K3 server, it can not
access the file from the exact same location. Seems to me I need to tell the
web server at a different level what account to run at or something. It
doesn't appear that the W2K3 web server's account has permission to access
the file despite the fact I am using the same account as the W2K. Anyone
have any ideas? The goal is to get the W2K3 web server to successfully
access a remote file on a W2K file server without any permissions problems.
Again, the share and NTFS on the file server are wide open.

Thanks!
Jul 19 '05 #1
2 1567
On Tue, 14 Sep 2004 14:19:59 -0400, "Rick Csucsai"
<ri**@no-spammm.energyun ited.com> wrote:
I have an ASP app that calls an object on the web server which goes out to a
mapped network drive to retrieve a file from a W2K file server. My current
web server is a W2K. The share on the file server as well as the NTFS
permissions on the server are wide open (Everyone Full Control) but still
require me to run the web server under an account other than the IUSR
account for the object to be able to access the file. None the less, it
works fine. However, when I run this same app on a W2K3 server, it can not
access the file from the exact same location. Seems to me I need to tell the
web server at a different level what account to run at or something. It
doesn't appear that the W2K3 web server's account has permission to access
the file despite the fact I am using the same account as the W2K. Anyone
have any ideas? The goal is to get the W2K3 web server to successfully
access a remote file on a W2K file server without any permissions problems.
Again, the share and NTFS on the file server are wide open.


While I'd rethink the share and NTFS permissions being left wide open,
the key is that the user on 2003 using the ASP app has to have correct
permissions to the file/folder/share on the remote server. Since you
don't post any errors it's tough to suggest where specifically to
look, but make sure you know what account your app is actually using,
and make sure you know what access that account actually has. For
example, if you think "Everyone" gives every account access, you need
to read up on Windows groups and permissions.

Jeff
Jul 19 '05 #2
Thanks Jeff, but I have all of that down pat. The wide open is for testing
to remove any variables. The application object simply returns an error code
of -1 which means it could not read the file. Grab the file from a local
drive and it has no problem. That is my question, what does W2K3 pass as the
user when doing something like this? Is it who the web site is running as
(i.e. IUSR_Machine name) or does IIS6 use something different since it is
now running at a lower kernel level?
"Jeff Cochran" <je*********@zi na.com> wrote in message
news:41******** *********@msnew s.microsoft.com ...
On Tue, 14 Sep 2004 14:19:59 -0400, "Rick Csucsai"
<ri**@no-spammm.energyun ited.com> wrote:
I have an ASP app that calls an object on the web server which goes out to amapped network drive to retrieve a file from a W2K file server. My currentweb server is a W2K. The share on the file server as well as the NTFS
permissions on the server are wide open (Everyone Full Control) but still
require me to run the web server under an account other than the IUSR
account for the object to be able to access the file. None the less, it
works fine. However, when I run this same app on a W2K3 server, it can notaccess the file from the exact same location. Seems to me I need to tell theweb server at a different level what account to run at or something. It
doesn't appear that the W2K3 web server's account has permission to accessthe file despite the fact I am using the same account as the W2K. Anyone
have any ideas? The goal is to get the W2K3 web server to successfully
access a remote file on a W2K file server without any permissions problems.Again, the share and NTFS on the file server are wide open.


While I'd rethink the share and NTFS permissions being left wide open,
the key is that the user on 2003 using the ASP app has to have correct
permissions to the file/folder/share on the remote server. Since you
don't post any errors it's tough to suggest where specifically to
look, but make sure you know what account your app is actually using,
and make sure you know what access that account actually has. For
example, if you think "Everyone" gives every account access, you need
to read up on Windows groups and permissions.

Jeff

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5808
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 a while the network drive apears to have a red X on the icon and the drive becomes disconnected. this seems to effect the VB code from grabbing the tables. I get an error saying the specific table cannot be found. If i manually open the mapped...
1
4999
by: BuddyWork | last post by:
Hello, I need to know how I can check if the drives on my machine are network drives and local drives via the .Net framework. For example my PC has the following drives C: Local D: Local N: Network S: Network
6
2753
by: Default User | last post by:
Hi How can i look for network share folders and copy a text file to it? I've been looking into how i can do this in the documention but with no luck. I found a little on of the web but i dont understand it, it seems to import mpr.dll and make the use of c++ calls. Can this be just done by c#? If so how? Jamie C
2
1562
by: Pradeep Sundaram(MSFT) | last post by:
Hello, I want to enumerate all the Drives on the web server using ASP.NET (C#) Writing code like this works when i use local host but when i try to access it from another machine it does not show the network drives. Code: foreach (string s in arr) { s2=s2+s; }
1
3413
by: Sparky | last post by:
Hi I was wondering if someone can please enlighten me as to the best and most approved way to connect and disconnect network drives in vb.net. I have been using Mpr.dll API calls such as WNetCancelConnection2 and WNetAddConnection2, but these seem to be very flakey with drive disconnection (The drive conenction seems to be pretty good). I would have through that Microsocft would have provided a simple class you
0
2356
by: Dennis | last post by:
I have tried to use the IWshRuntimeLibrary and ManagementObjectSearcher("SELECT * FROM Win32_LogicalDisk") to get all Logical Drives, Mapped Network Drives, Shared Folders and Shared Drives with limited Success because there is a bug apparently in using IWshRuntimeLibrary. There must be some API calls to get this information since Windows Explorer seems to be able to get. Can anyone tell me what API's are used. I know GetLogicalDrivesA...
2
602
by: lastusernameleft | last post by:
Is there a .NET method for doing this? I haven't found anything else that works. Thanks
9
8561
by: =?Utf-8?B?THVpcyBBbnRvbmlvIFJvc2VsbG8gR2FyY2lh?= | last post by:
Hi, I have a big problem with a Visual C++ 6.0 function that retrives the logical drives and types in the local system. This function works perfectly on Windows 98, NT, 2000, XP and 2003, but I have tested it on Windows Vista and it doesn't retrieve remote network drives. It must retrieve a string with the drive letters and a string with the drive types (2=removable drive, 3=hard drive, 4=remote drive, 5=CD-ROM drive, 6=RAM drive) I...
0
2058
by: Daffydd | last post by:
Hi all, This one's driving me up a wall! We have a small office network, Windows SBS 2003, nothing fancy - recently upgraded from an old Compaq running Novell. Back in the day we used the "F" and "G" drive letters for our main network drives. This worked wonderfully until we started using flash drives recently - replacing floppies for portable data movement. Seems that, even tho we have 2 mapped drives as "F" and "G" Windows (XP and...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10048
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.