A: 

You have to configure the container to disambiguate the construction of EntityContext:

Container.RegisterType<EntityContext >("Context", new InjectionConstructor(...))
onof
I tried it, but the constructors should be disambiguate, because the auto-generated designer file contains a class EntityContext which inherits from ObjectContext. There three constructors with zero and one parameter - EntityContext(), EntityContext(string connectionString) , EntityContext(EntityConnection connection). Hence it should also work with just Container.RegisterType<EntityContext >("Context"), shouldn't it?
Kai Krupka
No, it doesn't, because the container tries to use to constructor with the maximum number of the parameters. If you have two constructors with 1 parameter, it can't figure out how to build it. You have to disambiguate (either configuring the container as in my answer or with InjectionConstructor attribute)
onof
great. now I understand your point and its working.
Kai Krupka