Breeze | Datajs - No Handler For Data
Solution 1:
I think you are missing Metadata in your contoller
public string Metadata()
{
return _contextProvider.Metadata();
}
Solution 2:
If your service uses OData version 4 then DataJs and inherently BreezeJs (which usess datajs) will throw this exception as you have found.
Breeze has an open issue for this: https://github.com/Breeze/breeze.js/issues/39. It looks like you can use this BreezeJs adapter to solve problems with OData version 4.0: https://github.com/tschettler/breezejs-odata4-adapter
Here is a status report as of May 2014 that confirms the above: http://www.odata.org/blog/status-updates-of-odata-libraries-that-support-odata-version-4-0/
For OData version 4 you can use another javascript library called Olingo as described here: http://olingo.apache.org/doc/javascript/index.html
Here is a summary of libraries with specified supported version: http://www.odata.org/libraries/
Post a Comment for "Breeze | Datajs - No Handler For Data"