-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codebugSomething isn't workingSomething isn't workingstaleIssue is stale because it has been open for a while and has no activityIssue is stale because it has been open for a while and has no activity
Description
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
Metadata
Metadata
Assignees
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codebugSomething isn't workingSomething isn't workingstaleIssue is stale because it has been open for a while and has no activityIssue is stale because it has been open for a while and has no activity
Type
Projects
Status
Backlog: Planned