Visual Basic Problem, Path error

Crystal Star 1 Reputation point
2020-12-04T03:11:12.027+00:00

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\Temp1_Star_Crystal_VB1.zip\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\Temp1_Star_Crystal_VB1.zip\Star_Crystal_Selection VB1\Star_Crystal_Selection VB1.vbproj'. C:\Users\Crystal\AppData\Local\Temp\Temp1_Star_Crystal_VB1.zip\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.
4,578 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.
935 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Viorel 111.8K Reputation points
    2020-12-04T06:48:38.86+00:00

    Try copying the folder “C:\Users\Crystal\AppData\Local\Temp\Temp1_Star_Crystal_VB1.zip\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).

    1 person found this answer helpful.

  2. Anna Xiu-MSFT 25,466 Reputation points Microsoft Vendor
    2020-12-04T07:48:39.493+00:00

    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 Star_Crystal_VB1.zip 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:
      45153-image.png
    4. Reload your project and check if it works for you.

    Sincerely,
    Anna

    • 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.
    1 person found this answer helpful.
    0 comments No comments

  3. Đặng Nguyễn Đức Hiếu 1 Reputation point
    2021-03-30T09:31:11.817+00:00

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

    0 comments No comments