Re: DirectoryNotFound when accessing remote folders
From: Bradley Booth (brad@data-man.com)
Date: 10/24/02
- Next message: Tim Greenwood: "Re: DirectoryNotFound when accessing remote folders"
- Previous message: Shawn Farkas [MS]: "Re: DES Algorithm (RC4 Encryption)"
- In reply to: Tim Greenwood: "DirectoryNotFound when accessing remote folders"
- Next in thread: Tim Greenwood: "Re: DirectoryNotFound when accessing remote folders"
- Reply: Tim Greenwood: "Re: DirectoryNotFound when accessing remote folders"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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??
>
>
- Next message: Tim Greenwood: "Re: DirectoryNotFound when accessing remote folders"
- Previous message: Shawn Farkas [MS]: "Re: DES Algorithm (RC4 Encryption)"
- In reply to: Tim Greenwood: "DirectoryNotFound when accessing remote folders"
- Next in thread: Tim Greenwood: "Re: DirectoryNotFound when accessing remote folders"
- Reply: Tim Greenwood: "Re: DirectoryNotFound when accessing remote folders"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|