locked
Lambda Expression Error RRS feed

  • Question

  • Hello,

    I am using a third party assembly method as follows:

          CreateMap<DocumentCreate, Document>()
            .ForMember(d => d.Level.Id, o => o.MapFrom(s => s.Level));

    And I get the following error:

    Exception Details: System.ArgumentException: Expression 'd => Convert
    (d.Level.Id)' must resolve to top-level member. Parameter name:
    lambdaExpression

    Is this a problem in my code? Am I missing something? (My code
    compiles)

    Thanks,
    Miguel
    Tuesday, September 22, 2009 11:27 AM

Answers

  • Looks like this exception is specific to the component you are using. Try to contact the company-vendor.

    Vitaliy Liptchinsky http://dotnetframeworkplanet.blogspot.com/
    • Marked as answer by Figo Fei Thursday, September 24, 2009 9:53 AM
    Tuesday, September 22, 2009 11:48 AM