【发布时间】:2017-01-18 13:21:00
【问题描述】:
我的 webApi 在其中使用了第三方 web api 服务。问题是它在我的本地机器和 Azure Web 服务中完美运行。但是当我将此解决方案传输到 Azure Vm 实例时,会出现此错误。我已经安装了与该第 3 方 Web api 相关的正确证书并在 HttpClient 注册并尝试使用
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11;
但它给出了同样的错误。我不知道确切的错误是什么。请问有人可以帮忙吗?
【问题讨论】:
-
您使用的是什么第三方 Web API?您能否提供一些关于调用第三方 Web API 的关键代码,以便我们重现此问题。
标签: c# azure ssl asp.net-web-api virtual-machine