Re: DirectoryNotFound when accessing remote folders

From: Bradley Booth (brad@data-man.com)
Date: 10/24/02


From: "Bradley Booth" <brad@data-man.com>
Date: Thu, 24 Oct 2002 11:29:16 -0700


What account is your IIS running under......Allow Anonoyms might be on and
using a local account (one that does not have permissions to the network
drive)...see if that helps.

"Tim Greenwood" <tim_greenwood@yahoo.com> wrote in message
news:ubG42Z4eCHA.2556@tkmsftngp08...
> Working from my local workstation (WinXP +IIS) I have a drive J: which is
> mapped from \\nt\vol5 . I have full permissions on this folder as does
> everyone. I have a webservice running on my local machine in wwwroot. In
> this webservice there are a couple of lines that are bombing.
>
> System.IO.DirectoryInfo di = new System.IO.DirectoryInfo("j:\");
> System.IO.FileInfo[] fi = di.GetFiles();
>
> On the call to di.GetFiles() I receive an error "A part of the path J:\
> could not be found" as the text of a DirectoryNotFound exception. If I
try
> like this
>
> System.IO.DirectoryInfo di = new
System.IO.DirectoryInfo("\\\\nt\\vol5\\");
> System.IO.FileInfo[] fi = di.GetFiles();
>
> I get a bad username or password. If I change the first example to go to
> local drive C: then it works fine. What permissions am I missing here??
>
>



Relevant Pages

  • Re: Office 2008 Files: Read Only, POSIX, ACLs Frustration!
    ... This is what I do for my server permissions: ... <same local account on the server> ... ACLs should always override standard permissions. ... Entourage Help Blog ...
    (microsoft.public.mac.office)
  • Re: webfolders permissions and IIs
    ... I have set share permissions on these so that users with the right ... >But I also have IIs running on that server and have web enabled all these ... Are you talking about Mapped drives, UNC shares, or ...
    (microsoft.public.win2000.general)
  • Re: webfolders permissions and IIs
    ... I have set share permissions on these so that users with the right ... >But I also have IIs running on that server and have web enabled all these ... Are you talking about Mapped drives, UNC shares, or ...
    (microsoft.public.windowsxp.general)
  • Re: webfolders permissions and IIs
    ... I have set share permissions on these so that users with the right ... >But I also have IIs running on that server and have web enabled all these ... Are you talking about Mapped drives, UNC shares, or ...
    (microsoft.public.inetserver.iis)
  • Re: IIS,SQL Server and Windows Authentication
    ... If you are not impersonating a user, then ASP.NET wil be running as worker process identity which is a local account that can't be assigned permissions to remote resources usually. ...
    (microsoft.public.inetserver.iis.security)