If you’re trying to compile an ASP.NET project/website in Visual studio 2012 or 2010 and getting error:
Value of type ‘System.Web.UI.HtmlControls.HtmlGenericControl’ cannot be converted to ‘System.Web.UI.HtmlControls.HtmlTableRow’
chances are you have an HTML table in your ASPX markup with runat="server"
attribute set and <tbody>
or <thead>
tags present. Remove <tbody>
and <thead>
tags and the error should go away.