Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue May 3, 2018 · 4 comments
Labels

Comments

@Koochy87
Copy link

Koochy87 commented May 3, 2018

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
Copy link
Contributor

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
Copy link
Author

Koochy87 commented May 4, 2018

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
Copy link

kine commented Dec 4, 2018

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
Copy link

unchase commented Feb 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants