Following your documents I am testing breeze with a database first object context.
I reference entityframework 5.0 with target net 4.0 while the objectcontext is enclosed in a library with EF 4.0 dlls.
Running the metadata request from url I get the error:
Public Class GareController
Inherits ApiController
Private contextProvider As Breeze.WebApi.EFContextProvider(Of dbGare.GAREEntities) = New Breeze.WebApi.EFContextProvider(Of dbGare.GAREEntities)("Gare")
<AcceptVerbs("GET")> _
Public Function Metadata() As String
Return contextProvider.Metadata
End Function
<AcceptVerbs("GET")> _
Public Function MA_PS2_CONFIG() As IQueryable(Of dbGare.MA_PS2_CONFIG)
Return contextProvider.Context.MA_PS2_CONFIG
End Function
<AcceptVerbs("POST")> _
Public Function SaveChanges(ByVal saveBundle As JObject) As SaveResult
Return contextProvider.SaveChanges(saveBundle)
End Function
End Class
The error is:
Could not load file or assembly 'EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)