<p>We get the following error;</p>

<pre><code>The request was aborted: Could not create SSL/TLS secure channel
</code></pre>

<p>while using a <code>WebRequest</code> object to make an <code>HTTPS</code> 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. </p>

<p>Has anyone seen this kind of thing before?</p>

[{'answer_id': 42228, 'author': 'Mark Cidade', 'author_id': 1659, 'author_profile': 'https://Stackoverflow.com/users/1659', 'pm_score': 1, 'selected': False, 'text': '<p>It looks like it may be a Conenction: Keep-alive thing: <a href="http://blogs.x2line.com/al/archive/2005/01/04/759.aspx#780" rel="nofollow noreferrer">http://blogs.x2line.com/al/archive/2005/01/04/759.aspx#780</a></p>\n'}, {'answer_id': 42229, 'author': 'Travis', 'author_id': 4284, 'author_profile': 'https://Stackoverflow.com/users/4284', 'pm_score': 3, 'selected': True, 'text': "<p>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.</p>\n"}, {'answer_id': 2829114, 'author': 'Thiago', 'author_id': 340557, 'author_profile': 'https://Stackoverflow.com/users/340557', 'pm_score': 2, 'selected': False, 'text': '<p>I have exactly the same problem! \nI send two requisitions to an HTTPS webservice in close period range (seconds).\nThe first requisition works fine, but the second requisition fails.</p>\n\n<p>I´ve tried to set "System.Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Ssl3", but the second requisition freezes...</p>\n\n<p>I´m using VB.NET 2008.</p>\n\n<p>Thanks</p>\n'}, {'answer_id': 32132106, 'author': 'Vyacheslav Kinzerskiy', 'author_id': 5250067, 'author_profile': 'https://Stackoverflow.com/users/5250067', 'pm_score': 1, 'selected': False, 'text': '<p>The similar problem for me fixed by: </p>\n\n<pre><code>System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/42215', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1659/']