Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Error message when trying to create new directory

Reply
Thread Tools

Error message when trying to create new directory

 
 
=?Utf-8?B?15nXldeg15kg15LXldec15PXkdeo15I=?=
Guest
Posts: n/a
 
      02-08-2005
Hi,
While trying to create new directory i recieve the following error
message:
"System.IO.DirectoryNotFoundException: Could not find a part of the path
"\\premfs16\sites".
The path exists, even when i check the path
with the code: Directory.Exists(...) the result is true.

Here is the code:
http://www.adeo.co.il/test.aspx

Notice that in the line before the code throws exception
i create new file to the same path and no error
occurs - only when trying to create directory
the error appears.

Any idea?
 
Reply With Quote
 
 
 
 
z. f.
Guest
Posts: n/a
 
      02-14-2005
is it security problem?
your code runs with MACHINENAME\aspnet user which shouldn't have network access.

"יו*י גולדברג" <@discussions.microsoft.com> wrote in message news:(E-Mail Removed)...
Hi,
While trying to create new directory i recieve the following error
message:
"System.IO.DirectoryNotFoundException: Could not find a part of the path
"\\premfs16\sites".
The path exists, even when i check the path
with the code: Directory.Exists(...) the result is true.

Here is the code:
http://www.adeo.co.il/test.aspx

Notice that in the line before the code throws exception
i create new file to the same path and no error
occurs - only when trying to create directory
the error appears.

Any idea?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
directory watcher, trying to match filename to directory name. Brian Wallace Ruby 10 04-21-2009 08:34 PM
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski ASP .Net 2 09-06-2007 03:58 PM
getting a null pointer when trying to create a new font Justin Java 4 10-12-2006 06:21 PM
Error trying to create New ASP.Net Project trouling@gmail.com ASP .Net 3 10-03-2005 02:34 PM
Trying to create new web project SQL ASP .Net 1 01-21-2004 11:52 PM



Advertisments