Skip to content

.Net: Bug: NRedisStack is not StrongName signed and won't work for (.Net Framework target SDKs) #11807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
anuj-modi opened this issue Apr 29, 2025 · 2 comments
Assignees
Labels
bug Something isn't working .NET Issue or Pull requests regarding .NET code

Comments

@anuj-modi
Copy link

Describe the bug
NRedisStack is not strong name signed so "Microsoft.SemanticKernel.Connectors.Redis" won't load it when being used from .NET Framework (I am using 4.8.1)

To Reproduce

// Use Azure AD authentication for Redis
var redisOptions = ConfigurationOptions.Parse(options.VectorStoreEndpoint)
                    .ConfigureForAzureWithTokenCredentialAsync(tokenCredential)
                    .Result;
var connectionMultiplexer = ConnectionMultiplexer.Connect(redisOptions);
builder.Services.AddSingleton<IDatabase>(connectionMultiplexer.GetDatabase());
builder.AddRedisVectorStore();

Expected behavior
I would expect this to load successfully.

Observed Error

Exception: System.AggregateException: One or more errors occurred. ---> System.IO.FileLoadException: Could not load file or assembly 'NRedisStack, Version=0.12.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

Platform

  • Language: C#, .NET Framework v4.8.1
  • Source: NuGet Package Microsoft.SemanticKernel.Connectors.Redis version 1.47.0-preview with NRedisStack 0.13.3
  • AI model: OpenAI:GPT-4o and text-embedding-3-large
  • IDE: Visual Studio
  • OS: Windows
@anuj-modi anuj-modi added the bug Something isn't working label Apr 29, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Apr 29, 2025
@anuj-modi anuj-modi changed the title Bug: NRedisStack is not StrongName signed and won't work for (.Net Framework target SDKs) Bug: NRedisStack is not StrongName signed and won't work for .Net Framework target SDKs Apr 29, 2025
@github-actions github-actions bot changed the title Bug: NRedisStack is not StrongName signed and won't work for .Net Framework target SDKs .Net: Bug: NRedisStack is not StrongName signed and won't work for (.Net Framework target SDKs) Apr 29, 2025
@markwallace-microsoft
Copy link
Member

@anuj-modi Redis have just released the 1.0 NRedisStack package so we'll update to that and see does that fix the problem.

@anuj-modi
Copy link
Author

@markwallace-microsoft I do not believe 1.0 will fix it because they are not currently signing their package. I opened redis/NRedisStack#416 and created redis/NRedisStack#417 to try and address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working .NET Issue or Pull requests regarding .NET code
Projects
Status: Backlog: Planned
Development

No branches or pull requests

3 participants