|
Home > Archive > IIS Server Security > March 2007 > Access mapped network drive from ASP.NET
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Access mapped network drive from ASP.NET
|
|
| Kenneth 2007-03-22, 7:29 am |
| Hello,
I have a aspx page which try to access a mapped network drive using
"Directory.getFiles". I have test the page under W2K IIS5 and it works fine.
However, when I move the page to window 2003 server with IIS6, an
"DirectoryNotFoundException" was thrown with a message "Could not find a part
of the path D:\......." when I load the page. I have read from newsgroup that
IIS6 use Network Service account to access share resources and I have granted
the access right to Network Service but the errror still remain. So, what
should I do to solve the problem?
Kenneth Ho
| |
| Mr Smith 2007-03-23, 1:22 pm |
| The drive is probably not "mapped" for that account, have you tried using a
full path like \\server\share...
"Kenneth" <Kenneth@discussions.microsoft.com> wrote in message
news:EFDA33A3-4BE8-42B7-9874-C9C1A57C6DD3@microsoft.com...
> Hello,
>
> I have a aspx page which try to access a mapped network drive using
> "Directory.getFiles". I have test the page under W2K IIS5 and it works
> fine.
> However, when I move the page to window 2003 server with IIS6, an
> "DirectoryNotFoundException" was thrown with a message "Could not find a
> part
> of the path D:\......." when I load the page. I have read from newsgroup
> that
> IIS6 use Network Service account to access share resources and I have
> granted
> the access right to Network Service but the errror still remain. So, what
> should I do to solve the problem?
>
> Kenneth Ho
|
|
|
|
|