question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to combine with Microsoft.AspNetCore.DataProtection.StackExchangeRedis

See original GitHub issue

Describe the bug

When using Microsoft.Extensions.Caching.Redis and Microsoft.AspNetCore.DataProtection.StackExchangeRedis together you get an issue that ConnectionMultiplexer type exists twice.

Once in StackExchange.Redis & once in StackExchange.Redis.StrongName

The type ‘connectionmultiplexer’ exists in both ‘stackexchange.redis.strongname’ …

To Reproduce

Steps to reproduce the behavior:

  1. Using version ‘2.1.2’ of package ‘Microsoft.Extensions.Caching.Redis’
  2. Using version ‘2.2.0’ of package ‘Microsoft.AspNetCore.DataProtection.StackExchangeRedis’
var redis = StackExchange.Redis.ConnectionMultiplexer.Connect("localhost");
services.AddDataProtection()
              .PersistKeysToStackExchangeRedis(redis);

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SeriousMcommented, Jan 17, 2019

Nevermind, Microsoft.Extensions.Caching.StackExchangeRedis is the update I asked for.

0reactions
analogrelaycommented, Jun 26, 2019

To clarify for folks here:

The existing package is staying on StackExchange.Redis.StrongName, a new package Microsoft.Extensions.Caching.StackExchangeRedis was introduced that references the new StackExchange.Redis package. The API is the same, with some minor namespace changes.

This was done because the StackExchange.Redis 2.0 release is a breaking change.

Closing as I don’t think there’s actionable work for us here now. Let us know if that changes!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to combine with Microsoft.AspNetCore. ...
Describe the bug When using Microsoft.Extensions.Caching.Redis and Microsoft.AspNetCore.DataProtection.StackExchangeRedis together you get ...
Read more >
c# - .Net core session issue with StackExchangeRedis on ...
The problem is when only has one instance, everything is working. But when on multiple instances, session is null. Below is our code...
Read more >
Microsoft.AspNetCore.DataProtection. ...
Version Downloads Last updated 8.0.0‑preview.7.23375.9 208 11 days ago 8.0.0‑preview.6.23329.11 570 a month ago 8.0.0‑preview.5.23302.2 1,389 2 months ago
Read more >
PolicyAuthorizationResult.Forbid Method
Indicates that the access to a resource was forbidden.
Read more >
How to distribute Data Protection keys with an ASP.NET ...
The Microsoft.AspNetCore.DataProtection.StackExchangeRedis package allows you to store data protection keys in a Redis cache backed by a list entry.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found