Thursday, October 21, 2010

Visual Studio Error - The imported project file could not be loaded. Root element is missing.

I faced this problem... while I restarted my solution. (Not sure what I did wrong... may be my VPN was not connected and I was not able to connect to TFS) then it took my solution offline and then all this problem started.


Unable  to read the project file. The imported project file could not be loaded. Root element is missing.


Don't reinstall Visual Studio or even .NET framework.
What you have to do is delete the .user file for that project and it will work.

19 comments:

  1. YOu are a genius!!!

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. how to find .user file in visual studio 2010,
    Where .user file is located

    I also got the same error but, I don't know how to remove .user file from my project....can any one help me..

    ReplyDelete
    Replies
    1. look for the file inside the project's folder

      Delete
    2. go to tools option from menu panel of Drive and Unchecked if hide extension for known file is checked. You will find the .user file just delete it

      Delete
    3. I cant find it too, I have shawn all of hidden files

      Delete
    4. Close Visual Studio #2017 o anyone then delete file
      Android.csproj.user in from (D:\YouProject\YouProject.Android)

      Delete
  4. any one tell me the path for .user file in vs2010 .Urjent.....

    ReplyDelete
  5. error in pop up:
    one or more projects in the solution were not loaded correctly ,please see the output window for details

    Error in output window :

    D:\steadgate projects\RealEsate\RealEstate\RealEstate\RealEstate.csproj : error : Unable to read the project file 'RealEstate.csproj'.
    D:\steadgate projects\RealEsate\RealEstate\RealEstate\RealEstate.csproj(1,1): The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.

    ReplyDelete
  6. Thanks!!
    Does anyone know why it works?

    ReplyDelete
  7. Have Delete the .user File from the project but m project does not load.
    Any help?

    ReplyDelete
  8. Thanks for the idea, but this doens't work for me.

    ReplyDelete
  9. nice shared content! thanks!


    http://meikarta-apartments.blogspot.co.id

    ReplyDelete
  10. I tried deleting the Visual Studio Solution User Options file but still doesn't work , I just created a new project then import all existing item from the old project.

    ReplyDelete

FEEDJIT Live Traffic Map