SignalR 无法通过 SSL 连接到 Azure Redis [英] SignalR cannot connect to Azure Redis on SSL

查看:107
本文介绍了SignalR 无法通过 SSL 连接到 Azure Redis的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在 Azure 上托管我的 redis 缓存服务器,并且使用以下内容让 signalR 依赖它作为主干......

I am currently hosting my redis cache server on Azure, and have signalR relying on it as the backbone using the following...

GlobalHost.DependencyResolver.UseRedis("Server",port,"password","eventKey");

GlobalHost.DependencyResolver.UseRedis("Server",port,"password","eventKey");

这可以在端口 6379(非 SSL)上找到,但是当我尝试连接到 Azure Redis 服务器的 SSL 端口 (6380) 时,我的聊天应用程序中断,并且集线器从未启动.这个问题的原因可能是什么?还是我做错了什么?

This works find on port 6379 (non-SSL) but my chat app breaks when I try to connect to the SSL port (6380) of my Azure Redis server, and the hub is never started. What could be the cause of this issue? Or am I doing something wrong?

这是我浏览器中/signalr/connect 上出现的错误net::ERR_CONNECTION_RESET

This is the error that appears on /signalr/connect in my browser net::ERR_CONNECTION_RESET

推荐答案

你可以试试这个:<代码>GlobalHost.DependencyResolver.UseRedis(new RedisScaleoutConfiguration(connectionString, "YourServer"));

和连接字符串类似:

connectionString="yourNameHere.cache.windows.net,ssl=true,password=YourPasswordKey"

connectionString="yourNameHere.cache.windows.net,ssl=true,password=YourPasswordKey"

确保您使用的是使用 StackExchange.Redis 构建的 SignalR(最新的最好;)

Make sure you are using SignalR built with StackExchange.Redis (latest is gratest ;)

这篇关于SignalR 无法通过 SSL 连接到 Azure Redis的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆