Ask a Question related to ASP.NET General, Design and Development.
-
Sparky #1
Directory creation
I want to create a directory on my web server from within code. I've tried
using Request.PhysicalApplicationPath() to get the location of the
application, and appended my new directory on the end and used
Directory.CreateDirectory which fails with:
System.IO.DirectoryNotFoundException: Could not find a part of the path
"d:\". at System.IO.__Error.WinIOError(Int32 errorCode, String str) at
System.IO.Directory.InternalCreateDirectory(String fullPath, String path) at
System.IO.Directory.CreateDirectory(String path) at ...
BUT if I manually create the directory in an FTP program, and use
Directory.Exists, it manages to find the directory... the problem just
appears to be creating.
Any clues?
Cheers
Sparky
Sparky Guest
-
Creation of ASPNET user in Active Directory 203
Hello, I unable to see ASPNET user in Active directory 2003. I installed asp.net on windows 2003 & IIS. So please tell me how to create ASPNET... -
Active Directory Search fails ("The directory service is unavailab
Hi all, I'm having one of those nerve wrecking errors, when trying to perform a simple search in an Active Directory. The objective of the code... -
Server cannot access application directory ... The directory does not exist or is not accessible because of security settings
If you are using Windows XP in a Workgroup, rather than a Domain, then by default "Simple Filesharing" is turned on, and you won't see a security... -
Server cannot access application directory... The directory does not exist or is not accessible because of security settings.
Hi, I have this issue with the error below. Let me explain my goal and my server environement: Goal: To have 3 separate web servers reading... -
rsync exclude file - directory name without directory contents
When using rsync to maintain incremental backups significant space can be saved on the backup server by excluding directories that have non-critical... -
Steve C. Orr, MCSD #2
Re: Directory creation
It's probably a security issue. By default ASP.NET runs under the ASPNET
user account. This account does not have a lot of permissions on your
machine. Simply grant it full read, write & create permissions to the path
you're specifying on your server.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Sparky" <mark.smith@nospam.farmade.com> wrote in message
news:O0LIu0EUDHA.2228@tk2msftngp13.phx.gbl...at> I want to create a directory on my web server from within code. I've tried
> using Request.PhysicalApplicationPath() to get the location of the
> application, and appended my new directory on the end and used
> Directory.CreateDirectory which fails with:
>
> System.IO.DirectoryNotFoundException: Could not find a part of the path
> "d:\". at System.IO.__Error.WinIOError(Int32 errorCode, String str) at
> System.IO.Directory.InternalCreateDirectory(String fullPath, String path)> System.IO.Directory.CreateDirectory(String path) at ...
>
> BUT if I manually create the directory in an FTP program, and use
> Directory.Exists, it manages to find the directory... the problem just
> appears to be creating.
>
> Any clues?
>
> Cheers
>
> Sparky
>
>
Steve C. Orr, MCSD Guest



Reply With Quote

