ObjectDataSource AdDataSource Could not find a nongeneric method error

Last post 11-12-2009 2:45 PM by redwoodbev. 2 replies.

Sort Posts:

  • ObjectDataSource AdDataSource Could not find a nongeneric method error

    11-01-2009, 12:58 AM
    • Member
      15 point Member
    • redwoodbev
    • Member since 09-24-2008, 1:37 PM
    • Posts 88

     

    Hi, I'm getting the following error when trying to edit an existing ad.    "ObjectDataSource 'AdDataSource' could not find a non-generic method 'UpdateAd' that has parameters: original_Id, memberId, Title, Description, URL, Price, Location, isRelisting."

    Has anyone seen this, or have any idea where I should look for the problem? Thanks.

  • Re: ObjectDataSource AdDataSource Could not find a nongeneric method error

    11-01-2009, 11:21 AM
    Answer
    • Contributor
      2,564 point Contributor
    • darkknight187
    • Member since 09-14-2006, 4:35 AM
    • Bothell, Washington
    • Posts 1,008

    Yes, You added or removed one of the columns.

    For example, by default there's no column for Phone Number, and if you added it to all update sections but one,
    it will error like that.

    The sections are:

    Stored procedure UpdateAd,

    App_Code/DLL/Ads.xsd
    (I like to do it manually, by right clicking and choosing view code)
    There's two updateAd sections.

    App_Code/BLL/Ads.vb   again UpdateAd Section.

    And the editAd.aspx page, needs the textbox, or whatever you used for the new column.
    It also needs the entry down at the bottom of EditAd.aspx page.
    Just copy how the others were done.

    Good Luck

     

    Please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: ObjectDataSource AdDataSource Could not find a nongeneric method error

    11-12-2009, 2:45 PM
    • Member
      15 point Member
    • redwoodbev
    • Member since 09-24-2008, 1:37 PM
    • Posts 88

    Thank you.  Yes, when I added the Column for City I forgot to make the changes in EditAd.  I went in and added City to EditAds and everything is working now.  You pointed me in the right direction.  Thanks again. 

Page 1 of 1 (3 items)