OData / lab

This repository is for exploring new ideas and developing early prototypes of various OData stacks.
Other
48 stars 59 forks source link

Adding OData Connected Service to the project through local saved metadata failed: Object reference not set to an instance of an object. #86

Open Koochy87 opened 6 years ago

Koochy87 commented 6 years ago

I have OData Endpoint with Authentication and I can't connect it through URI. When I try it, then it "Cannot access ...metadata". When I try workaround placed here: Issue #82 ...it still fails with "Object reference not set to an instance of an object." error.

How is possible to link OData Endpoint with Authentication to .NET Standard project? (Visual Studio 2017, version 15.6.7)

AlanWong-MS commented 6 years ago

This extension does not currently support authentication. To work around, download the metadata as a text file from the endpoint and then point the OData Connected Services URI to the downloaded file.

Koochy87 commented 6 years ago

Thank you for your quick reply, @AlanWong-MS . But when I download the metadata as a text file (.edmx) from the endpoint and then I point the OData Connected Services URI to the downloaded file, then arise this error: Adding OData Connected Service to the project failed: Object reference not set to an instance of an object.

Am I doing anything wrong?

kine commented 5 years ago

Same for me. Saving definition locally, same error when trying to use it to create OData reference. Seems that this is long time problem and no solution for it.

unchase commented 5 years ago

You can try my Unchase OData ConnectedService for solve this problem.