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.

11 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
  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. Replies
    1. hahaha.. hope that saved your some time....

      Delete

FEEDJIT Live Traffic Map