There is an error in XML document (2, 2).What does this mean?

My experience from it would be that in the 2nd line in the 2nd chararacter, there is an error. have a look if your class names are different from the XML tags. are you maybe changing the "XML Root name" to a different one.

Have a look at the XML structure and which class are you serializing to which node.

Also, read the MSDN Documentation about the XmlRootAttribute Class.


In my case it appears one of the Visual Studio 2017 version 15.5 updates caused this error when trying to open SSRS projects. The solution is to delete the *.rptproj.rsuser file from the project folder and try again.