Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I accidently switching off a wrong switch where my pc which on loading a Adobe Illustrator import at that time turn off and when I switch on the power and open the solution, this error message appear
XML
"E:\My Source Code\Application File\Application\ApplicationApp\ApplicationApp.vbproj : error  : Unable to read the project file 'ApplicationApp.vbproj'. "

"E:\My Source Code\Application File\Application\ApplicationApp\ApplicationApp.vbproj : The project file could not be loaded. Root element is missing."



How to solve this?
Posted
Updated 18-May-18 0:40am

This error is caused by corrupted proj file.
Visual Studio allway has backup project file at specific folder.
Pls browse to:
C:\Users\<Your user>\Documents\Visual Studio <Vs version>\Backup Files\<your project>
You can see 2 file same as:
Original-May-18-2018-1209PM.<your project>.csproj
Recovered-May-18-2018-1209PM.<your project>.csproj

You only need copy file: Original-May-18-2018-1209PM.<your project>.csproj
And re-name as <your project>.csproj & overide at root project folder.
Trouble is solved!
 
Share this answer
 
Comments
MorthanH 10-Aug-18 14:55pm    
This just saved my day! My project file was all nulls chars after a crash, so I just copied the backup to my project and rename. Thanks mate!
Luiey Ichigo 6-Nov-18 22:02pm    
Happen to me earlier when moving to C# and your options working great. The backup project was a savior.
kuldeepleo 6-Feb-19 8:59am    
this worked for me thank you for your kind info...
Member 12876660 20-Nov-19 4:48am    
Thanks a lot!
Member 14859717 6-Aug-20 3:28am    
i did the same but same error prevails
Right-click the project in the solution-explorer and select "Edit ApplicationApp.vbproj". Alternatively, open the file in any plain-text-editor (like Notepad). It's an XML-file. See if you can identify what's corrupt in there and maybe manually fix it. Maybe (hopefully) you have a backup of your project and can use the older version of the file either as a replacement or as a template how it should look like in general to fix the corrupted one. If all that doesn't work, create a new project, copy your source files there, include them into the project and recreate potentially lost settings, like assembly-references, target-platform etc.
 
Share this answer
 
Comments
Luiey Ichigo 19-Apr-15 10:08am    
My man, you are a savior. Many great thanks for the idea. I open the vbproj using notepad and see not a character. So based from your idea, I open back previous backup(same old program),full copy and paste to null vbproj and save. Open back the solution, rebuild and it went just like before. Thanks man. Very-very thanks to you. May God bless you.
Sascha Lefèvre 19-Apr-15 10:14am    
You're welcome! Glad I could help. Good luck with your project and keep making backups ;-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900