lab icon indicating copy to clipboard operation
lab copied to clipboard

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

Open Koochy87 opened this issue 7 years ago • 4 comments

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)

Koochy87 avatar May 03 '18 06:05 Koochy87

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.

AlanWong-MS avatar May 03 '18 17:05 AlanWong-MS

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?

Koochy87 avatar May 04 '18 13:05 Koochy87

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.

kine avatar Dec 04 '18 08:12 kine

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

unchase avatar Feb 19 '19 21:02 unchase