Print Page | Close Window

Development halting error: "Must inherit from Entity and does not"

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2174
Printed Date: 14-May-2025 at 9:37pm


Topic: Development halting error: "Must inherit from Entity and does not"
Posted By: MVenhola
Subject: Development halting error: "Must inherit from Entity and does not"
Date Posted: 20-Sep-2010 at 11:47am
We have 8 EF models that combine to create our entity manager.  We added a 9th model and any entity from this model provides the following error during a query.  We tried adding a 10th model that has a completely different entity manager.  Same error.  Entity queries from the first 8 models work perfectly.
 
This error is killing us.  Any ideas??
 
 
EntityServerException: Models.BillingEvent must inherit from Entity and does not. ---> System.ArgumentException: Models.BillingEvent must inherit from Entity and does not.
   at IdeaBlade.EntityModel.Server.EntityServerQueryInterceptor.HandleException(Exception e, PersistenceFailure failureType)
   at IdeaBlade.EntityModel.Server.EntityServerQueryInterceptor.OnExecuteQuery()
   at IdeaBlade.EntityModel.Server.EntityServerQueryInterceptor.Execute(IEntityQuery entityQuery, SessionBundle sessionBundle, IEntityServer entityServer)
   at IdeaBlade.EntityModel.Server.EntityServer.Fetch(SessionBundle sessionBundle, IEntityQuerySurrogate surrogate)
   at SyncInvokeFetch(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   at IdeaBlade.EntityModel.EntityManager.HandleEntityServerException(Exception ex, Boolean tryToHandle, PersistenceOperation operation)
   at IdeaBlade.EntityModel.EntityManager.HandleEntityServerException(BaseOperation op, Boolean tryToHandle, PersistenceOperation persistenceOp)
   at IdeaBlade.EntityModel.EntityManager.<ExecuteQueryAsyncCore>b__61[T](EntityQueryOperation`1 op)
   at IdeaBlade.EntityModel.AsyncProcessor`1.<Execute>b__5(Object x)



Replies:
Posted By: ting
Date Posted: 20-Sep-2010 at 6:32pm

Issue resolved. 

"We are pulling connection strings from our database and creating the EF connection strings dynamically in our KeyResolver.  However, we forgot that the model name changes even if the connection data stays the same, so DevForce was looking for entities in the assembly based on an incorrect model path."



Posted By: MVenhola
Date Posted: 20-Sep-2010 at 7:50pm
Correct, issue resolved. Mistake on our end.



Print Page | Close Window