"Could not find a part of the path… " error on IIS 6.0

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default "Could not find a part of the path… " error on IIS 6.0

    I have an ASP.NET web application running on a load-balanced Windows
    Server 2003 web farm running IIS 6.0, using Active Directory
    authentication. I'm trying to programmatically create a new directory
    on a different server in the same domain. Before we switched to 2003,
    I was able to simply change the user in the machine.config file to a
    domain user with permissions. In 2003 I have done the following:

    1. Created a new domain user account.
    2. Made this user an Administrator on all servers.
    3. Created a new application pool and set the Identity of the App Pool
    to the new user.
    4. Set my application to use this app pool.
    5. Added this user account to the IIS_WPG group.
    6. Added User Rights of "adjust memory quotas for a process" and
    "Replace a process level token" to this user account.
    7. Used the SETSPN to add a SPN for this user account using syntax
    SETSPN.EXE –A HOST/<computer name> Domain\UserAccount

    I'm still getting the "Could not find a part of the path… " error when
    the System.IO.Directory.CreateDirectory method is called.

    Any ideas?
    dsh Guest

  2. Similar Questions and Discussions

    1. Error: Could not find a part of the path / Reading and Writing to files in ASP.Net
      Hello, I'm trying to read a text file located in the top folder of the virtual directory and I'm receiving the following error: "Could not...
    2. Windows Server 2003/IIS 6.0/ASP.NET "Could not find a part of the path"
      I have an ASP.NET web application running on a load-balanced Windows Server 2003 web farm running IIS 6.0, using Active Directory authentication. ...
    3. Exception - Could not find a part of the path "D:\"
      I've just deployed my .Net Web app at an ISP on a shared server. Whenever I try to create a new directory, an exception is raised - Could not...
    4. Modify>Alter Path> "Inset Path" and "Expand Stroke" ERRONEOUS??
      Sometimes I have tried to make some custom paths, for example letter 'A' converted to paths (Times New Roman font), and when I tried to use command...
    5. replacing part of the path for "tar"
      Hi, I have to tar -xvf ebf100.30.tar, but when I do it it creates an ebf10030 directory inside the target directory and puts all the stuff...
  3. #2

    Default "Could not find a part of the path. " error on IIS 6.0

    The real issue is how are you authenticating users to the
    website? If you are using an anonymous account, make
    sure that Allow IIS to control password under the
    Anonymous Access section is not enabled. If it is
    enabled, you will not be able to access network
    resources. In this case, you will not be able to write
    to a non-local directory.
    >-----Original Message-----
    >I have an ASP.NET web application running on a load-
    balanced Windows
    >Server 2003 web farm running IIS 6.0, using Active
    Directory
    >authentication. I'm trying to programmatically create a
    new directory
    >on a different server in the same domain. Before we
    switched to 2003,
    >I was able to simply change the user in the
    machine.config file to a
    >domain user with permissions. In 2003 I have done the
    following:
    >
    >1. Created a new domain user account.
    >2. Made this user an Administrator on all servers.
    >3. Created a new application pool and set the Identity
    of the App Pool
    >to the new user.
    >4. Set my application to use this app pool.
    >5. Added this user account to the IIS_WPG group.
    >6. Added User Rights of "adjust memory quotas for a
    process" and
    >"Replace a process level token" to this user account.
    >7. Used the SETSPN to add a SPN for this user account
    using syntax
    >SETSPN.EXE -A HOST/<computer name> Domain\UserAccount
    >
    >I'm still getting the "Could not find a part of the
    path. " error when
    >the System.IO.Directory.CreateDirectory method is called.
    >
    >Any ideas?
    >.
    >
    Keith Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139