Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 29th, 2003, 04:20 AM
Registered User
 
Join Date: Sep 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Get Folder names

I need to get all the folders names(one level) uner a certain root folder. I've tried 2 methods. The old Dir method and the 'dim di as new DirectoryInfo(PathTextBox.Text)' .... 'then di.GetDirectories()'. Both of these methods work for my local harddisks.

My problem is. I've got a mapped drive (a drive that is on a different pc on our lan) I've got full Access on this drive, but if I try to get folder names on this mapped drive, it gives me errors. The dir function give a unknown system error and the DirectoryInfo method gives wrong username or password erros.

Can You please give me a solution or just ideas what I can do to read folder names from a mapped drive.

Thanx a million:D

Jaco
 
Old October 29th, 2003, 09:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Just a thought...

What type of authentication are you using? If it is anonymous access, you will need to change IUSR_MACHINENAME account to a domain account and then give it access to the other computer's folder that you want to list.

Alternatively, you could use Integrated Windows authentication and this should take care of it, assuming it is a rights issue on the folder.
 
Old October 29th, 2003, 12:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I would also check to see if the aspnet user account has access to the drive on the different pc. I'm not sure if that will have anything to do with it.






Similar Threads
Thread Thread Starter Forum Replies Last Post
App_Code folder shared on only 1 folder? rpeters83 ASP.NET 2.0 Professional 1 September 1st, 2006 10:53 PM
To Many Names bachuss SQL Language 0 January 18th, 2006 12:40 PM
Making a folder virtual folder on button click in CsharpHelp C# 0 October 26th, 2005 05:57 AM
Constraint for names barkingstars Oracle 2 April 14th, 2004 01:29 PM
User Names Ben Horne Forum and Wrox.com Feedback 4 April 8th, 2004 08:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.