System.IO.DirectoryNotFoundException for remote folder
Posted on 2008-06-20
- 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
- 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.