This is a migrated thread and some comments may be shown as answers.

Errors Trying to compile

2 Answers 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shurland
Top achievements
Rank 1
Shurland asked on 23 Mar 2012, 07:59 PM
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 Answers, 1 is accepted

Sort by
0
Serge
Telerik team
answered on 28 Mar 2012, 09:31 AM
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 >>
0
Shurland
Top achievements
Rank 1
answered on 02 Apr 2012, 07:46 AM
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!!
Tags
General Discussions
Asked by
Shurland
Top achievements
Rank 1
Answers by
Serge
Telerik team
Shurland
Top achievements
Rank 1
Share this question
or