Error message when trying to create new directory

Discussion in 'ASP .Net' started by =?Utf-8?B?15nXldeg15kg15LXldec15PXkdeo15I=?=, Feb 8, 2005.

  1. 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?
     
    =?Utf-8?B?15nXldeg15kg15LXldec15PXkdeo15I=?=, Feb 8, 2005
    #1
    1. Advertisements

  2. =?Utf-8?B?15nXldeg15kg15LXldec15PXkdeo15I=?=

    z. f. Guest

    is it security problem?
    your code runs with MACHINENAME\aspnet user which shouldn't have network access.

    "יוני גולדברג" <@discussions.microsoft.com> wrote in message news:...
    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?
     
    z. f., Feb 14, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SQL
    Replies:
    1
    Views:
    431
    John Soulis [MSFT]
    Jan 21, 2004
  2. Replies:
    3
    Views:
    452
  3. ashutosh
    Replies:
    1
    Views:
    3,494
    kaeli
    May 27, 2005
  4. Justin
    Replies:
    4
    Views:
    735
    Tor Iver Wilhelmsen
    Oct 12, 2006
  5. Replies:
    4
    Views:
    459
    osmium
    Oct 4, 2006
  6. Brian Wallace
    Replies:
    10
    Views:
    566
    Martin DeMello
    Apr 21, 2009
  7. Replies:
    2
    Views:
    768
    Thomas 'PointedEars' Lahn
    Mar 11, 2008
  8. Replies:
    1
    Views:
    125
    Chris Angelico
    Jul 25, 2013
Loading...