{"record":{"id":"fc4358168b148420","repo":"microsoft/semantic-kernel","slug":"vector-store-type-config-rag-vectorstoretype-i-fc4358","errorCode":null,"errorMessage":"Vector Store type '{config.Rag.VectorStoreType}' is not supported.","messagePattern":"Vector Store type '(.+?)' is not supported\\.","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.AppHost/Program.cs","lineNumber":125,"sourceCode":"        throw new NotSupportedException($\"AI Embedding service '{config.Rag.AIEmbeddingService}' is not supported.\");\n    }\n\n    return [chatResource, embeddingsResource];\n}\n\nstatic IResourceBuilder<IResourceWithConnectionString> AddVectorStore(IDistributedApplicationBuilder builder, HostConfig config)\n{\n    switch (config.Rag.VectorStoreType)\n    {\n        case AzureAISearchConfig.ConfigSectionName:\n        {\n            return builder.ExecutionContext.IsPublishMode ?\n                builder.AddAzureSearch(AzureAISearchConfig.ConnectionStringName) :\n                builder.AddConnectionString(AzureAISearchConfig.ConnectionStringName);\n        }\n        default:\n        {\n            throw new NotSupportedException($\"Vector Store type '{config.Rag.VectorStoreType}' is not supported.\");\n        }\n    }\n}\n","sourceCodeStart":107,"sourceCodeEnd":129,"githubUrl":"https://github.com/microsoft/semantic-kernel/blob/c028a0c7dc4f0814cdcbaba9d998f187a41197bf/dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.AppHost/Program.cs#L107-L129","documentation":"Error \"Vector Store type '{config.Rag.VectorStoreType}' is not supported.\" thrown in microsoft/semantic-kernel.","triggerScenarios":"Thrown at dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.AppHost/Program.cs:125 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set Rag:VectorStoreType to a supported vector store value in the AppHost appsettings.","Consult Program.cs in the AppHost project for the supported vector store types and correct the setting."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c028a0c7dc4f0814cdcbaba9d998f187a41197bf","analyzedAt":"2026-08-13T13:48:05.040Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}