Thursday, March 21, 2013

XYZ.sln(1, 1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.

If you are getting this error

XYZ.sln(1, 1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.


Look inside the file for invalid Project or EndProject. Usually it is missing an EndProject, because it works in Visual Studio but fails on our Build Server.