Re: Connecting to a UNC share from a web application
From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 01/06/05
- Next message: Tim Mavers: "Requesting web page from SSL site fails"
- Previous message: Paul Clement: "Re: ASPNET Account not created"
- In reply to: Rasmus: "Connecting to a UNC share from a web application"
- Next in thread: Rasmus: "Re: Connecting to a UNC share from a web application"
- Reply: Rasmus: "Re: Connecting to a UNC share from a web application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 06 Jan 2005 13:12:06 -0600
On Thu, 6 Jan 2005 07:59:06 -0800, Rasmus <Rasmus@nospam.nospam> wrote:
¤ Basically I want to do the following:
¤
¤ DirectoryInfo baseDirInfo = new DirectoryInfo(@"\\server2\files");
¤ FileInfo[] aFileInfos = baseDirInfo.GetFiles();
¤ string ss = "";
¤ foreach (FileInfo fileInfo in aFileInfos){
¤ ss += fileInfo.Name;
¤ }
¤
¤
¤ But I need a way to supply the username and password – otherwise I’m not
¤ allowed to access the share.
¤
¤ Info:
¤ The web application has anonymous access
¤ No domain
¤ A local user is created on server2
¤ This user has access to share d:\files on server2
Take a look at the below link concerning delegation scenarios:
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
- Next message: Tim Mavers: "Requesting web page from SSL site fails"
- Previous message: Paul Clement: "Re: ASPNET Account not created"
- In reply to: Rasmus: "Connecting to a UNC share from a web application"
- Next in thread: Rasmus: "Re: Connecting to a UNC share from a web application"
- Reply: Rasmus: "Re: Connecting to a UNC share from a web application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|