xml - Web 代理:无法为 SSL/TLS 安全通道建立信任关系
问题描述
我正在尝试从我开发的本地 Web 服务向第三方 Web 服务发出传出 HTTP 调用。问题是我通常连接到 VPN,因为这是一个公司环境,如果我连接到 VPN,我会收到错误消息。如果我断开 VPN,HTTP 调用就会顺利通过。
我已将此添加到我的网络服务的 web.config 中:
<configuration>
<system.net>
<defaultProxy>
<proxy bypassonlocal="false" usesystemdefault="true" />
</defaultProxy>
</system.net>
</configuration>
仍然无法正常工作...我还需要哪些额外步骤?
解决方案
我已通过将其添加到 web.config 来解决此问题:
<system.net>
<defaultProxy>
<proxy autoDetect="false" bypassonlocal="true" proxyaddress="http://<proxy>:<port>/" />
</defaultProxy>
</system.net>
我从 Internet 选项中找到了我的组织的代理 URI,在连接选项卡下,选择 VPN 连接。
推荐阅读
- python - 从 SKlearn 导入 MPLClassifier 失败
- ios - 无法在 SwiftUI 中初始化 @StateObject ViewModel
- bash - 循环在 git 操作中无法正常工作
- google-chrome - Chrome 辅助功能树版本变更日志
- java - Double LinkedList 未显示我正在搜索的确切值
- jmeter - 如何使用 JMeter 中的 loadrunner 查看负载测试原始数据(例如我们可以将原始数据导出到 csv 文件以检查事务响应、用户等)?
- node.js - MERN Redux TypeError:conversations.map is not a function redux
- html - 在导航栏下方放置圆形按钮
- java - SWING:使用 setBackground Container 调用方法由于递归调用导致 StackOverFlow 错误
- python - 为什么 .index 返回字符串中字符的错误索引?