1
Vote

SageFrameV2_Source.zip does not compile

description

Error 30 Argument '1': cannot convert from 'System.Web.UI.HtmlControls.HtmlGenericControl' to 'System.Web.UI.HtmlControls.HtmlTableRow' C:\DOWNLOAD\SageFrame\SageFrame\Modules\Admin\UserManagement\UserProfile.ascx 47
Error 32 Argument '1': cannot convert from 'System.Web.UI.HtmlControls.HtmlGenericControl' to 'System.Web.UI.HtmlControls.HtmlTableRow' C:\DOWNLOAD\SageFrame\SageFrame\Modules\Admin\UserManagement\UserProfile.ascx 240
Error 29 The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments C:\DOWNLOAD\SageFrame\SageFrame\Modules\Admin\UserManagement\UserProfile.ascx 47
Error 31 The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments C:\DOWNLOAD\SageFrame\SageFrame\Modules\Admin\UserManagement\UserProfile.ascx 240
Warning 28 The field 'SageFrame.Modules.Admin.Extensions.Editors.ModuleControlsDetails._controlCount' is assigned but its value is never used C:\DOWNLOAD\SageFrame\SageFrame\Modules\Admin\Extensions\Editors\ModuleControlsDetails.ascx.cs 43
Warning 27 The field 'SageFrame.Modules.Admin.Extensions.Editors.ModuleControlsDetails._newmoduleControlID' is assigned but its value is never used C:\DOWNLOAD\SageFrame\SageFrame\Modules\Admin\Extensions\Editors\ModuleControlsDetails.ascx.cs 42
Warning 26 Unable to update auto-refresh reference 'ajaxcontroltoolkit.dll'. Cannot find assembly 'C:\DOWNLOAD\sfnewsletter\SageFrame\bin\AjaxControlToolkit.dll'. C:\DOWNLOAD\SageFrame\SageFrame\bin\ajaxcontroltoolkit.dll.refresh C:...\SageFrame\
Warning 25 Unable to update auto-refresh reference 'system.web.silverlight.dll'. Cannot find assembly 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\System.Web.Silverlight.dll'. C:\DOWNLOAD\SageFrame\SageFrame\bin\system.web.silverlight.dll.refresh C:...\SageFrame\

comments

msawczyn wrote Dec 9, 2012 at 3:01 PM

"Argument 1: cannot convert from 'System.Web.UI.HtmlControls.HtmlGenericControl' to 'System.Web.UI.HtmlControls.HtmlTableRow'"

This is a known error (see http://forums.asp.net/t/1834745.aspx/1). It occurs when all of the following are true: 1) .NET 4.5 is installed on the development computer (doesn't have to be used, just installed), 2) a website project is being compiled, and 3) a <table> tag on one of the pages is tagged to runat="server" and has either a <thead> or a <tbody> tag (or both).

The problem exhibits itself in the SageFrame project because of the <tbody> tags in the files indicated by the error messages. I've been able to take then out with no adverse effects.

"Unable to update auto-refresh reference ..." warnings don't hurt anything. To get rid of them, I removed the .refresh file and added the NuGet package for AjaxControlToolkit (only because I wanted the latest version). Silverlight's .refresh file can be removed to eliminate the Silverlight message -- I didn't upgrade that because Silverlight versions make me twitchy since they change so fast (and I never use them anyway).

Regardless, once you get rid of the four <table> errors (caused by two <table> tags) the warnings are just that -- warnings -- and won't affect your build.