向项目添加 OData 连接服务失败:值不能为空.参数名称:path1 [英] Adding OData Connected Service to the project failed: Value cannot be null. Parameter name: path1
问题描述
我正在将 ASP API 2 与 OData v3 和 Visual Studio 2017 社区一起使用.我正在尝试通过 OData 连接服务,我跟着这个 instructions 然后它抛出错误:
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:
向项目添加 OData 连接服务失败:值不能为空.参数名称:path1错误
那么如何处理这个问题?
so how to handle that issue ?
推荐答案
澄清 CRice 的回应:
To clarify CRice's response:
为 OData V3 安装 WCF 数据服务 5.0https://www.microsoft.com/en-us/search/result.aspx?q=WCF+Data+Services
Install the WCF Data Services 5.0 for OData V3 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 中的添加连接的服务引用上下文菜单
3-Use the Add Connected Service Reference context menu from VS 2017
这篇关于向项目添加 OData 连接服务失败:值不能为空.参数名称:path1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!