I am unable to debug the web application with VS2010. When I build it, I get the following errors:
C#/VB.NET Code:
Error 43 Argument '1': cannot convert from 'System.Web.UI.HtmlControls.HtmlGenericControl' to 'System.Web.UI.HtmlControls.HtmlTableRow' D:\StoreFront\9300C\Web\sfmgmt\Controls\editcustomer.ascx 316
Error 45 Argument '1': cannot convert from 'System.Web.UI.HtmlControls.HtmlGenericControl' to 'System.Web.UI.HtmlControls.HtmlTableRow' D:\StoreFront\9300C\Web\sfmgmt\Controls\editcustomer.ascx 35
Error 47 Argument '1': cannot convert from 'System.Web.UI.HtmlControls.HtmlGenericControl' to 'System.Web.UI.HtmlControls.HtmlTableRow' D:\StoreFront\9300C\Web\sfmgmt\Controls\editcustomer.ascx 393
Error 41 d:\StoreFront\9300C\Web\sfmgmt\Controls\editcustomer.ascx(316): error CS1502: The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments
Error 42 The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments D:\StoreFront\9300C\Web\sfmgmt\Controls\editcustomer.ascx 316
Error 44 The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments D:\StoreFront\9300C\Web\sfmgmt\Controls\editcustomer.ascx 35
Error 46 The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments D:\StoreFront\9300C\Web\sfmgmt\Controls\editcustomer.ascx 393
I cannot figure out how to get rid of these errors; it looks like actually a bug in VS, maybe? http://stackoverflow.com/questions/1...-table-element
Has anyone figured out how to work around this?