我正在将ASP API 2与OData v3和Visual Studio 2017社区一起使用..我正在尝试通过OData Connected Service使用此API,并且我遵循的是instructions,然后抛出错误:
将OData Connected Service添加到项目失败:值不能为null.
参数名称:path1
Error
那么该如何处理呢?
解决方法:
为了阐明CRice的回应:
为OData V3安装WCF数据服务5.0
https://www.microsoft.com/en-us/search/result.aspx?q=WCF+Data+Services
1-添加Odata Connected Service扩展
2-验证注册表内容:
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-使用VS 2017中的添加连接的服务引用上下文菜单