VS 2010: A value like "System.Web.UI.HtmlControls.HtmlGenericControl" cannot be converted to "System.Web.UI.HtmlControls.HtmlTableRow"

This error seems to be a known bug in VS 2012 when you try to set runat = "server", which contains the a element.

Well, I actually use VS 2010 (although it installed 2012 last night, and rumors keep that this will cause it in 2010 as well), and there are no thead or tbody elements in the table elements that supposedly cause this error. But they have an attribute runat = "server" and colgroup.

So is this related to installing VS 2012? And if so, is there a fix for this?

UPDATE: Removing colgroup elements seems to resolve this. However, this is rather annoying.

+2
source share
2 answers

Applying this patch worked for me: http://www.microsoft.com/en-us/download/details.aspx?id=36359

obs. I am using Windows 7 x64 with VS2010 and VS2012 installed.

+3
source

Was this a problem after upgrading to VS 2012 with the <table run="server"...> containing the <tbody> element. Removing <tbody> resolved the build error for me.

+2
source

Source: https://habr.com/ru/post/972777/


All Articles