Click here to Skip to main content
13,902,007 members
Rate this:
Please Sign up or sign in to vote.

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
"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?
Updated 18-May-18 0:40am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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 ;-)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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!
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.
kuldeep_leo 6-Feb-19 8:59am
this worked for me thank you for your kind info...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190306.1 | Last Updated 18 May 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100