question

CrystalStar-2714 avatar image
0 Votes"
CrystalStar-2714 asked ngNguyncHiu-9895 published

Visual Basic Problem, Path error

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

vs-generalvs-debugging
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Viorel-1 avatar image
1 Vote"
Viorel-1 answered CrystalStar-2714 commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you, I will try this out and let you know the results

0 Votes 0 ·
AnnaXiu-MSFT avatar image
1 Vote"
AnnaXiu-MSFT answered AnnaXiu-MSFT edited

Hi @CrystalStar-2714,

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.






image.png (33.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ngNguyncHiu-9895 avatar image
0 Votes"
ngNguyncHiu-9895 answered ngNguyncHiu-9895 published

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.