Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Simon Osborne 108 posts 150 karma points
    Jan 24, 2012 @ 17:42
    Simon Osborne
    0

    Extending Marketing foundation - New Award UI error

    I am creating a New Award type and so have created an Award UI usercontrol that Inherits ViewEnabledControl(Of IEditCampaignItemView) and Implements IConfigurable.

    That creates a public function called CreateObjectFromDataSource and a Property called DataSource.

    What goes in here as I am getting the following error:

    At /umbraco/ucommerce/marketing/editcampaignitem.aspx?id=8&parent=3 (Referred by: http://www.hattonboxing.com/umbraco/ucommerce/marketing/editcampaignitem.aspx?id=8&parent=3): System.Web.HttpParseException: Method not found: 'System.Object UCommerce.Presentation.Web.IConfigurable.CreateObjectFromDataSource()'. ---> System.MissingMethodException: Method not found: 'System.Object UCommerce.Presentation.Web.IConfigurable.CreateObjectFromDataSource()'.
       at System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase)
       at System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
       at System.Web.UI.Util.GetTypeFromAssemblies(ICollection assemblies, String typeName, Boolean ignoreCase)
       at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError)
       at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly)
       at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData)
       --- End of inner exception stack trace ---
       at System.Web.UI.TemplateParser.ProcessException(Exception ex)
       at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
       at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

     

     

  • Simon Osborne 108 posts 150 karma points
    Jan 25, 2012 @ 09:28
    Simon Osborne
    0

    Has anyone added a new Award yet in uCommerce?

    Cheers,

    Simon

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 27, 2012 @ 11:44
    Søren Spelling Lund
    0

    There was some refactoring done between 2.0 and 2.1. The "CreateObjectFromDatasource()" metod was replaced by the "New()" method as described in the docs. We hadn't release docs for 2.0 and figured we could do the refactoring safely as no one had had the chance to do anything with the 2.0 API yet.

    It'll be easier if you update to 2.1.

Please Sign in or register to post replies

Write your reply to:

Draft