I received this error when trying to put a couple of C# projects live. The sites were working locally in VS 2010 but on live they threw the following error:
CS0117: 'System.Web.UI.HtmlControls.HtmlAnchor' does not contain a definition for 'Text'
This was the code having the issue in the code file of the master page:
litHome.Text = "active";
In the source the master page I had this:
<li><a href="Default.aspx" class="<asp:Literal ID="litHome" runat="server" />">home</a></li>
The error being thrown appeared to think I was setting the text property of an HTML Anchor.
I've just fixed this myself but after not being able to find the solution on here (or Google) I thought I'd post it for anyone else having the problem. Please see my comments below as I'm not allowed to answer this yet.