I want to create a directory on my web server from within code. I've tried
using Request.Physica lApplicationPat h() to get the location of the
application, and appended my new directory on the end and used
Directory.Creat eDirectory which fails with:
System.IO.Direc toryNotFoundExc eption: Could not find a part of the path
"d:\". at System.IO.__Err or.WinIOError(I nt32 errorCode, String str) at
System.IO.Direc tory.InternalCr eateDirectory(S tring fullPath, String path) at
System.IO.Direc tory.CreateDire ctory(String path) at ...
BUT if I manually create the directory in an FTP program, and use
Directory.Exist s, it manages to find the directory... the problem just
appears to be creating.
Any clues?
Cheers
Sparky
using Request.Physica lApplicationPat h() to get the location of the
application, and appended my new directory on the end and used
Directory.Creat eDirectory which fails with:
System.IO.Direc toryNotFoundExc eption: Could not find a part of the path
"d:\". at System.IO.__Err or.WinIOError(I nt32 errorCode, String str) at
System.IO.Direc tory.InternalCr eateDirectory(S tring fullPath, String path) at
System.IO.Direc tory.CreateDire ctory(String path) at ...
BUT if I manually create the directory in an FTP program, and use
Directory.Exist s, it manages to find the directory... the problem just
appears to be creating.
Any clues?
Cheers
Sparky
Comment