简体   繁体   中英

Azure Session State It was not possible to connect to the redis server(s)

I did all the steps from this tutorial ( http://blogs.msdn.com/b/webdev/archive/2014/05/12/announcing-asp-net-session-state-provider-for-redis-preview-release.aspx?CommentPosted=true#commentmessage )

  • Created new MVC Web Site
  • Added Nuget package
  • Modified the Web.Config to reflect my Azure Redis

But, everytime i try to run my project, i get the following error message :

It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING

What am I missing?

By default, non-ssl port 6379 is disable for azure redis cache. Use ssl = "true" in web.config and everything should work fine.

If you don't want to use SSL then go to https://portal.azure.com and for you redis cache enable non-ssl port by going through Settings -> Access Ports -> Allow access only via SSL and click on "NO" and save.

Recommended and secure way is to use SSL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM