Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: Build error on web app

  1. #1
    lambrite is offline Senior Member
    Join Date
    Jun 2007
    Posts
    116

    Default Build error on web app

    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 CS1502The 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?

  2. #2
    lambrite is offline Senior Member
    Join Date
    Jun 2007
    Posts
    116

    Default Confirmed: NET 4.5 Framework is cause

    I unstalled 4.5, reinstalled 4.0 and now do not have this issue. Wonder when the two will be compatible?

  3. #3
    jsimacek is offline Senior Member
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    373

    Default

    Hmm, are you running it under .Net 3.5?
    Jan Simacek - Compunix, LLC
    AspDotNetStorefront trusted Devnet Partner and Reseller since 2005

    AspDotNetStorefront Mods and Add-Ons at http://www.ecommercecartmods.com/
    - Searching, Filtering and Sorting (like cSearch, Dealer Locator, Price Ranges, Blog)
    - Reports (like Cart Abandonment and Net Sales)
    - Customer Experience (like Question/Answers)
    - Site and Data Management (like Entity Product Mapper, Bulk Updaters, Make/Model/Year filters)

  4. #4
    lambrite is offline Senior Member
    Join Date
    Jun 2007
    Posts
    116

    Default

    Yes. There is a problem with the 4.5 framework specifically that, regardless of the target framework of your project, a web site project (non-compiled site) that uses runat tags in HTML controls will not compile.

    Hopefully either Microsoft or ASPDNSF will resolve this soon.