Access mapped network drive from ASP.NET

Access mapped network drive from ASP.NET

am 22.03.2007 09:30:07 von kenneth

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

Re: Access mapped network drive from ASP.NET

am 23.03.2007 18:35:54 von John Smith

The drive is probably not "mapped" for that account, have you tried using a
full path like \\server\share...

"Kenneth" 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