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 cannot be null. Parameter name: path1 #82

Closed
dalehhirt opened this issue Mar 12, 2018 · 19 comments
Assignees
Labels

Comments

@dalehhirt
Copy link

When attempting to add a new Rest API client proxy, this error pops up. What is the resolution or action item? This error is pretty vague and non-helpful.

@tcukanoot
Copy link

Seems to be a common issue. I'm also looking for a resolution. Visual Studio 2017.
#56
#64

@dalehhirt
Copy link
Author

@tcukanoot this is what worked for me:

First install Microsoft WCF Toolkit from the link below:
WCF Toolkit

and then go to the registry, find the following key:
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft WCF Data Services]
and create a duplicate of "5.6" named "VS 2014 Tooling".

@tcukanoot
Copy link

@dalehhirt

Thanks for the response. I've tried that as well, but still no luck. I'm wondering if it's due to a lack of credentials supplied.
If I hit the URL directly, I still get a 'cannot access' error. Then if I save the metadata xml locally and point to it, I get a 'closed textwriter' error. Having to go the VS 2015 route for now.

@tfujii
Copy link

tfujii commented Apr 3, 2018

It looks like the solution from @dalehhirt works with OData services that do not require authentication.

@AlanWong-MS
Copy link
Contributor

The extension currently doesn't support authentication. The feature is highly requested and is in a pending state.

@AlanWong-MS AlanWong-MS added the P4 label Apr 3, 2018
@AlanWong-MS
Copy link
Contributor

Since the original issue has been resolved, closing this thread.

@tfujii
Copy link

tfujii commented Apr 3, 2018

@AlanWong-MS May I request that the instructions from @dalehhirt be added to an FAQ so that other developers using VS 2017 may find this solution? It seems like the easiest one out of the set I've seen elsewhere in the issues, and I'm concerned that it may end up getting buried beneath the other more complex solutions proposed in the other threads.

@AlanWong-MS
Copy link
Contributor

AlanWong-MS commented Apr 3, 2018

@tfujii, I can do that. Thanks for the suggestion! Adding a FAQ through #84 to the ReadMe.

@onyangofred
Copy link

Just open the link in Internet explorer, will prompt for username and password. Then save the credentials. Try again in visual studio. It works!!!

@Koochy87
Copy link

Koochy87 commented May 3, 2018

@onyangofred I openned it, saved it, tried it in VS but it didn't work. An "Object reference not set to an instance of an object" error appeared.

@Orbatis
Copy link

Orbatis commented May 8, 2018

I tried to install a component manually (Microsoft.OData.ConnectedService.vsix) but I have the same problem! An "Object reference not set to an instance of an object" error appeared.

@mPisano
Copy link

mPisano commented May 24, 2018

@dalehhirt

two thumbs up!!!

and then go to the registry, find the following key:
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft WCF Data Services]
and create a duplicate of "5.6" named "VS 2014 Tooling".

Export the reg and edit file and merge it back and vs2017 is fixed!!!!

@mazenkt
Copy link

mazenkt commented May 24, 2018

Just call the URL in explorer like this: https://........:xx/TSOL/OData/$metadata

  • Save the file on local machine.
  • Use the file path in Address for Configration endpoint.

This work for me.

@soerenBoisen
Copy link

@AlanWong-MS I just ran into this issue when using a local EDMX file when trying to work around the lack of support for authentication (sigh). Could you please clarify how this issue was resolved? Because the workaround provided by @dalehhirt is arcane and inconvenient.
Why does the extension require this complex manual setup? This issue should be reopened and remain open until the extension solves this problem in a proper way.

@gtrennert
Copy link

I followed all this indications and nothing works. Is there any tool to add a odata reference to a c# application on VS2017 or VS2019 ? How comes that this issue is closed but nothing works ?

@mPisano
Copy link

mPisano commented Jul 27, 2019

I think it's closed because most people have shifted from WCF to either the OData v1-3 or the Newer OData V4 Client Generator for Odata
See
https://marketplace.visualstudio.com/items?itemName=bingl.ODatav4ClientCodeGenerator

HTH
Mike

@unchase
Copy link

unchase commented Jul 27, 2019

Hello. You just can use Unchase OData ConnectedService to solve your issue.

@EdwinRono-254
Copy link

I think it's closed because most people have shifted from WCF to either the OData v1-3 or the Newer OData V4 Client Generator for Odata See https://marketplace.visualstudio.com/items?itemName=bingl.ODatav4ClientCodeGenerator

HTH Mike

This resolved my issue. Thanks

@EdwinRono-254
Copy link

Hello. You just can use Unchase OData ConnectedService to solve your issue.

I am getting below error when I use Unchase ---------------------------

Microsoft Visual Studio

Connected Services

Cannot access http://localhost:7048/BusinessCentral/ODataV4/$metadata
Exception message: "The remote server returned an error: (401) Unauthorized.".

OK

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