i still cannot solve problem . any idea to fix this . plz help me
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
3 answers
Sort by: Newest
-
-
Anna Xiu-MSFT 26,646 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:
- Open the Star_Crystal_VB1.zip file and find the .sln file;
- 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.)
- 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:
- 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.
-
Viorel 113K 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).