MetadataException when using Entity Framework Entity Connection [duplicate]

Found the problem.

The standard metadata string looks like this:


And this works fine in most cases. However, in some (including mine) Entity Framework get confused and does not know which dll to look in. Therefore, change the metadata string to:


And it will work. It was this link that got me on the right track:

Although I had the oposite problem, did not work in unit test, but worked in service.

Leave a Comment