Azure通知中心请求已中止: Could not create SSL/TLS secure channel

标签 azure notifications

到目前为止,这一直有效,我们能够使用 Endpoint=sb://

格式的连接字符串

但是现在我们得到了

The request was aborted: Could not create SSL/TLS secure channel exception on the line

var registrations = await hub.GetRegistrationsByChannelAsync(handle.FcmToken, 100);

代码或中心设置没有任何变化。

最佳答案

我们可以通过 updating the target .net framework to 4.7+ 来解决这个问题或者通过强制 tls 1.2:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

关于Azure通知中心请求已中止: Could not create SSL/TLS secure channel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65741525/

相关文章:

azure - 解析 if 语句时,Arm 模板中的预期 token 'Identifier' 和实际 'LeftSquareBracket'

azure - 如何将文件从 blob 存储读取到 azure databricks,文件名中包含每日日期

sql - 聚合 Azure SQL 数据仓库中的字符串

.net - Azure 服务总线队列订阅筛选器更改

ios - 寻找一种在偶数日和奇数日呈现通知的方法

notifications - 使用Google Cloud Messaging发送广播通知

android - 是否可以将通知从抬头移动到状态栏?

Azure管道在部署之前删除应用程序服务上的文件

android - 如何在 Android 中清除通知

python - 将 Python 最小化到系统托盘并生成通知?