project file cannot be found ?

Posted on 2008-11-14
Last Modified: 2013-11-26
I copied the folders containing a Visual Studio 2005 solution to a new drive.
When I opened the solution, the error was "project file could not be found"
and none of the file or folders was opened. How can I fix this ?
Question by:pillmill
    LVL 1

    Accepted Solution

    When you say you copied the folders from one drive to another, do you mean, you copied from say the C: drive to the D: drive in the same computer?  Or, did you copy the folders from the C: drive on Computer A to the C: drive on Computer B?

    If the former -- meaning, you copied from the C: drive to the D: drive, I suspect your solution file (the .sln file) is expecting to find the .csproj project file on your C: drive, and cannot find it on the D: drive.  I am not 100% sure if this will work, but it is something to try.

    Locate the project's solution (.SLN) file -- this is created by default in your My Documents, Visual Studio 2005, Projects directory.  Find the folder of your project below here.  Inside this folder you will find the .SLN file.  After making a copy of your .SLN file as a precaution, open this file in NOTEPAD.  Near the top you will see where it references the physical path to your project.  Try changing the C:\ drive in the physical path to D:\ (or whatever drive letter you copied to) and see if that doesn't do the trick.


    Author Comment

    Thanks. I copied the files from one computer to a second one.

    LVL 1

    Expert Comment

    Is the project on the same physical hard drive as it was on the first computer?  Meaning, if you had it on C: on computer A, is it also on C: on Computer B.  What is the physical path to your project?  Are you sure you copied all files associated with it?

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now