Home All Groups Group Topic Archive Search About

Accessing NETWORK Drive through ASPNET_USER

Author
9 Dec 2005 9:55 PM
dotnettester
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

Author
9 Dec 2005 11:26 PM
John Timney ( MVP )
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

Show quote
"dotnettester" <dotnettes***@discussions.microsoft.com> wrote in message
news:C03F04ED-1ADB-48B9-9DD0-C755847A3B84@microsoft.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
Author
10 Dec 2005 1:31 AM
Bruce Barker
then you will find the aspnet_user need to be a domain account in order to
access a share.

-- bruce (sqlwork.com)



Show quote
"John Timney ( MVP )" <timneyj@despammed.com> wrote in message
news:%23HiPsfR$FHA.2156@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" <dotnettes***@discussions.microsoft.com> wrote in message
> news:C03F04ED-1ADB-48B9-9DD0-C755847A3B84@microsoft.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
>
>
Author
15 Dec 2005 8:30 PM
dotnettester
Thanks for your replies. I ended up doing this through domain account and a
UNC path.

Show quote
"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

AddThis Social Bookmark Button