Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > File I/O on a network drive from asp.net

Reply
Thread Tools

File I/O on a network drive from asp.net

 
 
Kim Kragh
Guest
Posts: n/a
 
      02-02-2004
Hi.

I've tried to save, move files from asp.net (using the FileInfo object). It
works fine locally, but I can't make it work on network drives. I have
granted the aspnet user all required permissions, but still with no luck.

Should I tweak something else (policy or app setting)?
Can I access a NAS box running Storage Server 2003 as an active directory
user?

Thanks in advance!


 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      02-02-2004
how are you accessing these network drives... hopefully not with a map/drive
letter. User UNC

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


"Kim Kragh" <> wrote in message
news:...
> Hi.
>
> I've tried to save, move files from asp.net (using the FileInfo object).

It
> works fine locally, but I can't make it work on network drives. I have
> granted the aspnet user all required permissions, but still with no luck.
>
> Should I tweak something else (policy or app setting)?
> Can I access a NAS box running Storage Server 2003 as an active directory
> user?
>
> Thanks in advance!
>
>



 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3VyZXNo?=
Guest
Posts: n/a
 
      02-02-2004
Kim
Granting permission to ASPNET user on a network machine will not help you. It only applies to your local machine. You have to get a domain account who has permissions to write to the directory on the network. For testing sake you can always use your account if your account has write permissions on the directory

HTH
Suresh

----- Kim Kragh wrote: ----

Hi

I've tried to save, move files from asp.net (using the FileInfo object). I
works fine locally, but I can't make it work on network drives. I hav
granted the aspnet user all required permissions, but still with no luck

Should I tweak something else (policy or app setting)
Can I access a NAS box running Storage Server 2003 as an active director
user

Thanks in advance



 
Reply With Quote
 
Karun
Guest
Posts: n/a
 
      02-02-2004
The ASPNET account is very restricted in terms of resources it can
access. It cannot, by default, access network drives. See this link
for more info:

http://support.microsoft.com/default...b;en-us;317012

"Kim Kragh" <> wrote in message news:<>...
> Hi.
>
> I've tried to save, move files from asp.net (using the FileInfo object). It
> works fine locally, but I can't make it work on network drives. I have
> granted the aspnet user all required permissions, but still with no luck.
>
> Should I tweak something else (policy or app setting)?
> Can I access a NAS box running Storage Server 2003 as an active directory
> user?
>
> Thanks in advance!

 
Reply With Quote
 
Felix Wu [MSFT]
Guest
Posts: n/a
 
      02-03-2004
Hi Kim,

By default, ASP.NET is running with ASPNET. It is a local account and, by
default, has no access to network resources. The actual account with which
your request is processed is determined by the ASP.NET worker process
settings in machine.config and virtual directory security settings in IIS
manager console.

Check the virutal directory security setting in IIS manager console. What
type of authentication you use? Did you enable impersonation in the
web.config file of the asp.net web application? You can take a look at the
following article for more information about ASP.NET impersonation:

306158 INFO: Implementing Impersonation in an ASP.NET Application
http://support.microsoft.com/?id=306158

You can use the Token Dump component from the MSDN magazine article to
check the token dump information in detail. It can give a clear view of how
ASP.NET security model works :

ASP .NET Security Issues (by Keith Brown)
http://msdn.microsoft.com/msdnmag/is...y/default.aspx

Regards,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>From: "Kim Kragh" <>
>Subject: File I/O on a network drive from asp.net
>Date: Mon, 2 Feb 2004 12:41:15 +0100
>Lines: 13
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 195.41.222.129
>Path:

cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
>Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:206876
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>Hi.
>
>I've tried to save, move files from asp.net (using the FileInfo object). It
>works fine locally, but I can't make it work on network drives. I have
>granted the aspnet user all required permissions, but still with no luck.
>
>Should I tweak something else (policy or app setting)?
>Can I access a NAS box running Storage Server 2003 as an active directory
>user?
>
>Thanks in advance!
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping A Network Drive On My Home Network From Another Location Fred Atkinson Cisco 4 02-18-2008 03:08 PM
Is there any module to map a network drive and remove a mapped network drive in perl king Perl Misc 1 10-22-2007 05:25 PM
making a new drive the boot drive in a 2 hard drive system hi2u Computer Support 3 07-30-2007 08:45 PM
how to check whether a drive is a network drive or drive from attached hard-disk shailesh Python 1 03-28-2007 12:57 PM
Adding a external usb drive to network as network storage? Ed Computer Support 6 03-14-2005 12:38 AM



Advertisments