New Posts New Posts RSS Feed: Development halting error: "Must inherit from Entity and does not"
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

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

 Post Reply Post Reply
Author
MVenhola View Drop Down
Newbie
Newbie


Joined: 20-Sep-2010
Posts: 8
Post Options Post Options   Quote MVenhola Quote  Post ReplyReply Direct Link To This Post Topic: Development halting error: "Must inherit from Entity and does not"
    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)
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post 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."

Back to Top
MVenhola View Drop Down
Newbie
Newbie


Joined: 20-Sep-2010
Posts: 8
Post Options Post Options   Quote MVenhola Quote  Post ReplyReply Direct Link To This Post Posted: 20-Sep-2010 at 7:50pm
Correct, issue resolved. Mistake on our end.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down