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 failed: Value does not fall within the expected range. #137

Closed
fxvits opened this issue Jun 4, 2020 · 7 comments

Comments

@fxvits
Copy link

fxvits commented Jun 4, 2020

Describe the bug

Each time I try to add/update an Odata Connected Service (Even with the Tripin Api provided on the Odata website (https:/OData/ODataSamples/tree/master/Scenarios/TripPin)) , I get the following error :
Adding Nuget Packages...
Nuget Package "Microsoft.OData.Client" for OData client already installed.
Nuget Package "Microsoft.OData.Core" for OData client already installed.
Nuget Package "Microsoft.OData.Edm" for OData client already installed.
Nuget Package "Microsoft.Spatial" for OData client already installed.
Nuget Packages were installed.
Generating Client Proxy for OData V4...
Error:Adding OData Connected Service to the project failed: Value does not fall within the expected range.

Version of the Project affected

ODataConnectedService v0.10.0
Microsoft Visual Studio Professional 2019 Version 16.5.2
Microsoft.Odata.Client v7.6.4

To Reproduce

Steps to reproduce the behavior:

  1. Download the trip in API from https:/OData/ODataSamples/tree/master/Scenarios/TripPin
  2. Create an empty client windows project
  3. Right click on service Reference and select connected service => Odata connected service
  4. In the wizard, I leave everything by default I just set the address to the local running tripin api (http://localhost:xxxx/$metadata)

Expected behavior

I expect to get the generated client Csdl

Actual behavior

Failing

Screenshots

If applicable, add screenshots to help explain your problem.
image

Additional context

Add any other context about the problem here.

@mukeshrebari
Copy link

image
Even I am getting this error. I have recently update OData Connected Service Plugin. Since then it started giving me error.

@mukeshrebari
Copy link

image
Even I am getting this error. I have recently update OData Connected Service Plugin. Since then it started giving me error.

I have downgraded Plugin to Version 0.9.0 but still it is giving same error.

@SuperJMN
Copy link

Same to me

@unchase
Copy link
Contributor

unchase commented Nov 20, 2020

I can't reproduce the issue with ODataConnectedService v0.11.1.

@dvoelkel
Copy link

I have the same problem with VS2019, while generating a d365-client.
The error occurs only in a webservice-project.
New project can read the metadata and generate the proxy.
So I think it's a problem within the underlying project.

@habbes
Copy link
Contributor

habbes commented Feb 25, 2022

Closing issue because we have not been able to reproduce it. If there's additional information that may help us reproduce the issue, kindly share it and re-open the issue.

@habbes habbes closed this as completed Feb 25, 2022
@kapsiR
Copy link

kapsiR commented Feb 15, 2023

@habbes We are experiencing the same problem as described here. Can you provide additional details how we can gain more error details than just this error message?

Error:Adding OData Connected Service to the project failed: Value does not fall within the expected range.

Thanks

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

No branches or pull requests

7 participants