New Posts New Posts RSS Feed: MetadataWorkspaces with multiple EntityContainers are not currently supported
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

MetadataWorkspaces with multiple EntityContainers are not currently supported

 Post Reply Post Reply
Author
cypher View Drop Down
Newbie
Newbie
Avatar

Joined: 26-Nov-2012
Location: Deutschland
Posts: 20
Post Options Post Options   Quote cypher Quote  Post ReplyReply Direct Link To This Post Topic: MetadataWorkspaces with multiple EntityContainers are not currently supported
    Posted: 12-Mar-2014 at 12:51am
Yesterday i was fighting with this problem again. Because we have renamed the Domain Model (EDMX) several times, we had a problem on the TeamCity Build Server side. Building the project was no problem, but at runtime some weard issues appeared.
I now force to clean all build directorys and i was able to get rid of this issue.
If you have the same problem, please try to clean all build direcotrys (bin/debug) and run it again.
Cheers
Pascal
Back to Top
cypher View Drop Down
Newbie
Newbie
Avatar

Joined: 26-Nov-2012
Location: Deutschland
Posts: 20
Post Options Post Options   Quote cypher Quote  Post ReplyReply Direct Link To This Post Posted: 11-Mar-2014 at 8:37am
i am also receiving the same issue. But only on the ClickOnce deployed versions.
 
Locally my models work just fine...
 
Currently the only solution to fix this problem, is to delete the entity edmx and recreate it from scratch.
 
deaBlade.EntityModel.EntityServerException: Key 'CompassEntities': MetadataWorkspaces with multiple EntityContainers are not currently supported ---> IdeaBlade.EntityModel.EntityServerException: MetadataWorkspaces with multiple EntityContainers are not currently supported
   at IdeaBlade.EntityModel.Edm.EdmKey.GetEntityContainer(EdmKey key)
   at IdeaBlade.EntityModel.Edm.EdmKey.CreateContext()
   --- End of inner exception stack trace ---
   at IdeaBlade.EntityModel.EntityManager.ExecuteQuery(IEntityQuery query)
   at Sunrise.Domain.Models.Compass.CompassManager.ProcGetViewGroup(Nullable`1 CorrelationId, Nullable`1 ViewId) in c:\TeamCity\buildAgent\work\a3679f96e1a1368d\Domain\Models\WorkFlow\CompassModel.IB.Designer.cs:line 232
   at Sunrise.Domain.Services.Compass.SearchService.<>c__DisplayClass1.<GetProductStatusAsync>b__0() in c:\TeamCity\buildAgent\work\a3679f96e1a1368d\Domain\Services\WorkFlow\SearchService.cs:line 38
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 04-Oct-2010 at 5:20pm
Your welcome Paul.
Back to Top
paul View Drop Down
Newbie
Newbie


Joined: 16-Sep-2010
Posts: 19
Post Options Post Options   Quote paul Quote  Post ReplyReply Direct Link To This Post Posted: 04-Oct-2010 at 5:05pm
I am still not sure what happened. I am leaning toward a bad connection string. After playing with it for about an hour I ended dropping the EF model and related DF objects. I only had a few entities so not a big deal but it will be when I have a lot more. Hopefully there won't be a next time. Thanks for the response.

Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 04-Oct-2010 at 3:26pm
Hi Paul;

The error means that 

"when retrieving metadata for an edmKey that we either couldn't find the EntityContainer, or found multiple.  The EntityContainer is defined in the csdl.  It's possible you might see this error if the connection string is bad, or if the assembly holding the artifact files cannot be found."

Hope that helps.
Back to Top
paul View Drop Down
Newbie
Newbie


Joined: 16-Sep-2010
Posts: 19
Post Options Post Options   Quote paul Quote  Post ReplyReply Direct Link To This Post Posted: 03-Oct-2010 at 6:03am
Okay, I am confused. My solution was working fine last night. This morning I get the following error. Nothing has changed except checking in everything to TFS. Any idea where to look before I rip the whole solution apart?  thanks...


  InnerException: IdeaBlade.EntityModel.EntityServerException
       Message=Key 'PrototypeCoreEntities': MetadataWorkspaces with multiple EntityContainers are not currently supported
       Cancelled=false
       RemoteExceptionDetails=EntityServerException: MetadataWorkspaces with multiple EntityContainers are not currently supported ---> 
   at IdeaBlade.EntityModel.Edm.EdmKey.GetEntityContainer(EdmKey key)
   at IdeaBlade.EntityModel.Edm.EdmKey.get_EntityContainer()
   at IdeaBlade.EntityModel.Edm.EdmKey.CreateContext()
       RemoteExceptionName=IdeaBlade.EntityModel.EntityServerException
       RemoteSource=IdeaBlade.EntityModel.Edm
       RemoteStackTrace=   at IdeaBlade.EntityModel.Edm.EdmKey.GetEntityContainer(EdmKey key)
   at IdeaBlade.EntityModel.Edm.EdmKey.get_EntityContainer()
   at IdeaBlade.EntityModel.Edm.EdmKey.CreateContext()
       StackTrace:
            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
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down