The whole internet is full of such problem:
due to some reason web site become uncompilable with the following error:
The type 'System.Xml.IXmlLineInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
It often appear in places that don't have any relationship to xml... In my case it is in the following line of the ascx file:
<br /><%#((Team)Container.DataItem).Href()%>
Or another one:
Hello, <%=_clu.User.Href(true)%>! ( <a href="/login/UsE_1.aspx">Exit</a> )
I saw I recommendation to remove all references to library, stop IIS, delete all temp files (I deleted usual temp files from user folder, from window folder, deleted everything from "Temporary ASP.NET Files" folder of all .NET folders...
Nothing helped...
Don't know, how to continue work at all... Reinstall Windows? :(
P.S. I have ASP.NET 4.0 web site
P.P.S. When I try to add reference VS tolds me:
The Web site is already referencing the assembly 'System.XML'.
What is additionaly confuses me is that "XML" is written in upper case. But the 'standard' .NET assembly has "System.Xml"...