Visual Basic Problem, Path error

Crystal Star 1 Reputation point

Created a Visual Basic Project, and I'm required to "Save All" when done, fine the folder, and send it to a zip file. Once I complete the step of sending it to a zip file, when I attempt to open and run the project in that zip file it gives me the error code:

C:\Users\Crystal\AppData\Local\Temp\\Star_Crystal_Selection VB1\Star_Crystal_Selection VB1.vbproj : error : The project file could not be loaded. Could not find a part of the path 'C:\Users\Crystal\AppData\Local\Temp\\Star_Crystal_Selection VB1\Star_Crystal_Selection VB1.vbproj'. C:\Users\Crystal\AppData\Local\Temp\\Star_Crystal_Selection VB1\Star_Crystal_Selection VB1.vbproj

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,450 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
694 questions
No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Viorel 83,016 Reputation points

    Try copying the folder “C:\Users\Crystal\AppData\Local\Temp\\Star_Crystal_Selection VB1” to some other location, for example to “C:\Users\Crystal\MyProjects”. Then use the new folder.

    (I.e. unzip the archive. It seems that you are trying to open the project from zip file directly).

  2. Anna Xiu-MSFT 11,206 Reputation points

    Hi @Crystal Star ,

    Thank you for reporting it in Microsoft Q&A.

    As you said, you send the initial VB project to a zip file. When you open the VB project via the zip file, the project path will be changed.

    Please try the following steps to correct the path:

    1. Open the file and find the .sln file;
    2. Right-click on the .sln file and open it in Visual Studio. (Please ignore the warning: One or more projects in the solution were not loaded correctly.)
    3. It is noted that the project is unloaded. Please change the File path into the path of Star_Crystal_VB1.vbproj file in initial VB project:
    4. Reload your project and check if it works for you.


    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    No comments

  3. 2021-03-30T09:31:11.817+00:00

    i still cannot solve problem . any idea to fix this . plz help me

    No comments