Breeze.js failing with Could not load file or assembly System.Web.Http.OData, Version=4.0.0.0
Asked Answered
M

1

5

I'm trying out Breeze.Js and everything compiles and i have a breeze-decorated controller, but when trying to access the data I receive an error about an assembly which breeze.js has referenced, but which i cannot find anywhere.

The assembly in question is System.Web.Http.OData, Version=4.0.0.0

The only place i've found something about this namespace is at https://github.com/ASP-NET-MVC/aspnetwebstack/tree/master/src/System.Web.Http.OData but I cannot find any nuget package for it.

Does anyone have a solution for this?

Monoatomic answered 11/4, 2013 at 12:38 Comment(0)
I
11

Check out the nuget package at http://nuget.org/packages/Microsoft.AspNet.WebApi.OData/.

Or do this from your package manager console.

Install-Package Microsoft.AspNet.WebApi.OData
Integration answered 11/4, 2013 at 14:32 Comment(2)
Hi, your solution was mostly correct, i had the package already but had to remove it and reinstall the package. I believe it could be due to the fact that the solution was in a dropbox folder and being open two places at once.Monoatomic
I had to removed the Breeze package and the OData package. Then re-add the Breeze package. Failed merge on csproj file I my guess for how I ended up with the issue. The references were all still in place, but OData library was not loading.Chauvin

© 2022 - 2024 — McMap. All rights reserved.