Errors Trying to compile

3 posts, 0 answers
  1. Shurland
    Shurland avatar
    9 posts
    Member since:
    Aug 2012

    Posted 23 Mar 2012 Link to this post

    I keep getting the following error when compiling my fluent mapping application

    Error 1 Extending existing model can only be performed on mapped classes.
    ExceptionString:
    System.NotImplementedException: Extending existing model can only be performed on mapped classes.
       at Telerik.OpenAccess.Metadata.Fluent.FluentMetadataSource.CreateModel()
       at Telerik.OpenAccess.Metadata.Fluent.FluentMetadataSource.GetModelCore(MetadataContainer model)
       at Telerik.OpenAccess.Sdk.Enhancer.Enhancer.CrossDomainRunImpl(AssemblyLoader assemblyLoader)
       at Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.CrossDomainRun() F:\ClientWebsites\GlazeSmartCartFluent\GlazeSmartCartFluent\obj\Debug\GlazeSmartCartFluent.dll GlazeSmartCartFluent

    Please help!
  2. Serge
    Admin
    Serge avatar
    375 posts

    Posted 28 Mar 2012 Link to this post

    Hello Shurland, 

    This exception should only be thrown if you have passed in a MetadataContainer in the constructor of the FluentMetadataSource, or duplicated a mapping configuration in the list of configurations that you have provided. Can you also check whether you are using the latest version of OpenAccess, we have implemented some additional check for similar scenarios. 

    If that does not help, can you please send us your project so that we can have a closer look at what is happening.
     
    Regards,
    Serge
    the Telerik team
    Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
  3. DevCraft banner
  4. Shurland
    Shurland avatar
    9 posts
    Member since:
    Aug 2012

    Posted 02 Apr 2012 Link to this post

    I've been able to figure it out. I forgot to typecast the mapping e.g. ... MappingConfiguration(Of Type) etc. and that's what was causing the error... a bit of reading goes a long way :) 

    Thanks anyway!!
Back to Top