Groups | Blog | Home
all groups > iis security > march 2007 >

iis security : Access mapped network drive from ASP.NET


Kenneth
3/22/2007 1:30:07 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?

Mr Smith
3/23/2007 10:35:54 AM
The drive is probably not "mapped" for that account, have you tried using a
full path like \\server\share...

[quoted text, click to view]

AddThis Social Bookmark Button