Hallo,
I am using the latest LinqPad version (v5.08.01 AnyCPU)
I have a WebApi project with a code-first Entity Framework model. The following NuGet packages are installed
Id Versions
-- --------
DynamicLINQ {1.0}
EntityFramework {6.1.3}
EntityFramework.de {6.1.3}
EntityFramework.Functions {1.3.1}
LinqKit {1.1.3.1}
Microsoft.AspNet.WebApi {5.2.3}
Microsoft.AspNet.WebApi.Client {5.2.3}
Microsoft.AspNet.WebApi.Client.de {5.2.3}
Microsoft.AspNet.WebApi.Core {5.2.3}
Microsoft.AspNet.WebApi.Core.de {5.2.3}
Microsoft.AspNet.WebApi.OData {5.3.1}
Microsoft.AspNet.WebApi.WebHost {5.2.3}
Microsoft.AspNet.WebApi.WebHost.de {5.2.3}
Microsoft.Data.Edm {5.6.0}
Microsoft.Data.OData {5.6.0}
Microsoft.Net.Compilers {1.0.0}
Newtonsoft.Json {6.0.4}
System.Spatial {5.6.0}
I created a new query in LinqPad. Added all the NuGet Packeges.
I try to add a conncetion using the Entity Framework (DbContext V4/V5/V6) Option.
I add the path to the dll generated in the WebApi porject. I get the following error message:
Could not load file or assembly 'System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
The Web Api project is referencing Version 5.2.3.0 (Specific Verion is set to false).
I added the following to the app.config:
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
I still get the error message.
Any help would be appreciated!