Link to home
Start Free TrialLog in
Avatar of putza
putza

asked on

System.IO.DirectoryNotFoundException for remote folder

Our setup:
- computer 1: Windows 2003 running IIS 6.0
- computer 2: Windows Storage Server on a Network Attached Storage (NAS), where all data stored
                       We have shared a folder on this computer, and computer 1 has mapped this folder as the
                       D-drive.
- We are using a 3rd pary .NET control that allows users to upload files to our this folder sitting on our NAS.
 
The problem to solve:
 - We get an error "System.IO.DirectoryNotFoundException for remote folder", whenever it calls the function System.IO.Directory.CreateDirectory("D:\uploads\newfolder")

I think it has something to setting up the .NET security permissions in the machine.config file or web.config file, but I am have tried lots of settings and I am stuck at this point. For you information if the  data were all stored on a folder on computer 1, then everything would works just fine.

ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial