ASP.NET - 请求被中止:无法创建 SSL/TLS 安全通道
我们得到以下错误;
The request was aborted: Could not create SSL/TLS secure channel
使用 WebRequest
对象发出 HTTPS
请求时。 有趣的是,这种情况只会在一段时间后发生,并在应用程序重新启动时暂时修复,这表明某些内容已满或其他内容。
以前有人见过这种事情吗?
We get the following error;
The request was aborted: Could not create SSL/TLS secure channel
while using a WebRequest
object to make an HTTPS
request. The funny thing is that this only happens after a while, and is temporarily fixed when the application is restarted, which suggests that something is being filled to capacity or something.
Has anyone seen this kind of thing before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我记得去年就遇到过这个问题。 我怀疑您没有正确关闭 WebRequest 对象,这就是为什么在使用一定量后它不允许您创建任何新连接。
I seem to recall having this problem last year. I suspect that you aren't closing your WebRequest objects properly, which is why after a certain amount of use it won't allow you to create any new connections.
我也有完全一样的问题!
我在相近的时间范围(秒)内向 HTTPS Web 服务发送了两个申请。
第一个请求工作正常,但第二个请求失败。
我尝试设置“System.Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Ssl3”,但第二个请求冻结...
我正在使用 VB.NET 2008。
谢谢
I have exactly the same problem!
I send two requisitions to an HTTPS webservice in close period range (seconds).
The first requisition works fine, but the second requisition fails.
I´ve tried to set "System.Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Ssl3", but the second requisition freezes...
I´m using VB.NET 2008.
Thanks
看起来它可能是一个 Conenction: Keep-alive 的东西: http://blogs.x2line.com/al/archive/2005/01/04/759.aspx#780
It looks like it may be a Conenction: Keep-alive thing: http://blogs.x2line.com/al/archive/2005/01/04/759.aspx#780
我的类似问题通过以下方式解决:
The similar problem for me fixed by: