ASP.NET Runtime Error: Could not find a part of path

ASP.NET Runtime Error: Could not find a part of path

Post by Puneet » Thu, 28 Aug 2008 01:22:45


I have found out the cause of this error, but I am not sure this will help you.
Basically I create a copy of existing project in another directory. When I open the new project and try to look at any .aspx page I got an error:
ASP.NET Runtime Error: Could not fina a part of path.
IF this is the case then do the following:
1. Open up the IIS administrator.
2. Right click on the project listed in Web Site tree.
3. Right click and select properties option from the popup menu.
4. In the virtual directory tab, change the Local path to point to the new project base directory.
5. Close down everything and restart windows.

(I tried to start and stop the web site instead of restarting, this did not work for me)
 
 
 

1. asp.net error: could not find a part of the path

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. 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 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?

3. ASP.NET run-time error: ASP.NET ADO User Registered Failure

4. Error: Could not find a part of the path / Reading and Writing to files in ASP.Net

5. ASP Error : Could not find a part of the path

6. Error: Could not find a part of the path / Reading and Writing to files in ASP.Net

7. asp.net Accessing UNC path - File Not Found

8. ASP.NET using ADO.NET connection runtime error

9. Error "VB Script runtime error: Path not found" because of large-size folder

10. Folder creation error: "Could not find a part of the path" error

11. VB.NET - Could not find a part of the path ?

12. Find component in ASP.NET form at run-time

13. ASP.NET 2.0 : compile error : Could not find schema information

14. MC++ assembly can't find C++ runtime DLLs when used from ASP.NET