Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding OData Connected Service to the project failed: Value cannot be null. Parameter name: path1

I am using ASP API 2 with OData v3 and Visual Studio 2017 Community .. I am trying to consume this API by OData Connected Service, and I followed this instructions then it throws error:

Adding OData Connected Service to the project failed: Value cannot be null. Parameter name: path1 Error

so how to handle that issue ?

like image 449
Amir Imam Avatar asked Mar 06 '23 23:03

Amir Imam


1 Answers

To clarify CRice's response:

Install the WCF Data Services 5.0 for OData V3 https://www.microsoft.com/en-us/search/result.aspx?q=WCF+Data+Services

1-Add the Odata Connected Service extension

2-Verify registry contents:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft WCF Data Services]

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft WCF Data Services\5.0]
"Version"="5.0.51212.0"
"InstallLocation"="C:\\Program Files (x86)\\Microsoft WCF Data Services\\5.0\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft WCF Data Services\VS 2014 Tooling]
"Version"="5.0.51212.0"
"InstallLocation"="C:\\Program Files (x86)\\Microsoft WCF Data Services\\5.0\\"

3-Use the Add Connected Service Reference context menu from VS 2017

like image 83
jlo-gmail Avatar answered May 03 '23 02:05

jlo-gmail