将OData Connected Service添加到项目失败:值不能为null.参数名称:path1 [英] Adding OData Connected Service to the project failed: Value cannot be null. Parameter name: path1

查看:404
本文介绍了将OData Connected Service添加到项目失败:值不能为null.参数名称:path1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将ASP API 2与OData v3和Visual Studio 2017社区一起使用.我正在尝试通过 OData连接服务,我遵循了说明,则它会引发错误:

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 Connected Service添加到项目失败:值不能为null. 参数名称:path1 错误

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

那么该如何处理呢?

推荐答案

要弄清CRice的响应,请执行以下操作:

To clarify CRice's response:

为OData V3安装WCF数据服务5.0 https://www.microsoft.com/zh-CN/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-验证注册表内容:

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-使用VS 2017中的添加连接的服务参考上下文菜单

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

这篇关于将OData Connected Service添加到项目失败:值不能为null.参数名称:path1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆