473,396 Members | 2,102 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.

Accessing NETWORK Drive through ASPNET_USER

Hi,

I'm trying to read a network drive through ASP.net.
This is what I have done.
- Create folder on a network machine.
- gave ASPNET_User read permssion on the folder.
- Mapped a drive to the folder say ('j' drive)
- When I try to access 'j:/myfolder' I get Access denied error.
- Where as I have shared the folder and given ASPNET_User permssions on the
folder.

Its Friday and I'm really tired. Can any one help?

Thnx
Dec 9 '05 #1
3 2169
Even though you have mapped a drive, the asp.net account us unlikely to know
what a J drive is even if it has permission - at least try a UNC path from
your asp.net page

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"dotnettester" <do**********@discussions.microsoft.com> wrote in message
news:C0**********************************@microsof t.com...
Hi,

I'm trying to read a network drive through ASP.net.
This is what I have done.
- Create folder on a network machine.
- gave ASPNET_User read permssion on the folder.
- Mapped a drive to the folder say ('j' drive)
- When I try to access 'j:/myfolder' I get Access denied error.
- Where as I have shared the folder and given ASPNET_User permssions on
the
folder.

Its Friday and I'm really tired. Can any one help?

Thnx

Dec 9 '05 #2
then you will find the aspnet_user need to be a domain account in order to
access a share.

-- bruce (sqlwork.com)

"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Even though you have mapped a drive, the asp.net account us unlikely to
know what a J drive is even if it has permission - at least try a UNC path
from your asp.net page

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"dotnettester" <do**********@discussions.microsoft.com> wrote in message
news:C0**********************************@microsof t.com...
Hi,

I'm trying to read a network drive through ASP.net.
This is what I have done.
- Create folder on a network machine.
- gave ASPNET_User read permssion on the folder.
- Mapped a drive to the folder say ('j' drive)
- When I try to access 'j:/myfolder' I get Access denied error.
- Where as I have shared the folder and given ASPNET_User permssions on
the
folder.

Its Friday and I'm really tired. Can any one help?

Thnx


Dec 10 '05 #3
Thanks for your replies. I ended up doing this through domain account and a
UNC path.

"dotnettester" wrote:
Hi,

I'm trying to read a network drive through ASP.net.
This is what I have done.
- Create folder on a network machine.
- gave ASPNET_User read permssion on the folder.
- Mapped a drive to the folder say ('j' drive)
- When I try to access 'j:/myfolder' I get Access denied error.
- Where as I have shared the folder and given ASPNET_User permssions on the
folder.

Its Friday and I'm really tired. Can any one help?

Thnx

Dec 15 '05 #4

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

Similar topics

5
by: Niloday | last post by:
Hi All, I am trying to access a mapped network drive from a service that I have created. The service needs to create/delete folders/files on a network drive. When I tried to connect to a...
1
by: Z0gS | last post by:
I got this problem for the web application I try to access files on a remote server. string dirs = Directory.GetDirectories(@"E:\vehicles") E drive is a map to a network drive. I get the...
1
by: Max Baki via .NET 247 | last post by:
I all, i've write a sample ftp Windows service which download files and copy them on remote share or remote mapped drive (the service works fine on local drives). This part of code is the...
3
by: Bonj | last post by:
I need to write a windows service, and the only way it can access a shared drive on a file server on the network is if the installer is put in "User" mode - "LocalService", "LocalSystem" and...
1
by: mbah Sumani via .NET 247 | last post by:
(Type your message here) I Think it's the stupidness of Windows. Why the service can't access network drive but console apps or windows application can do it? So my suggestion is make the program...
2
by: Ian Murrell | last post by:
My application writes a text data file to a folder on another computer. The other computer is mapped by drive letter to the root (C) shared folder, eg as G:. The network is simple peer2peer, shared...
8
by: Ben Fidge | last post by:
Hi I have a small WinForms app that needs to copy files from a shared drive on a network. If I connect to the mapped drive using Explorer, a password dialog pops-up and I have to provide...
2
by: Roka | last post by:
Hi all I have a problem when I tried to use fopen on a shared network drive .. (OS is Windows 2000svr) It is said fopen failed . Can anyone tell me how to do fopen on a network drive or network...
1
by: martin lanny | last post by:
My application should periodically connect to multiple network drives to see if the certain files were created. I would do this to retrieve the list of files in UNC path //server1/backup/: ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...

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.