microsoft/semantic-kernel · error · AggregateException

Plugin creation failed for {pluginName}

Error message

Plugin creation failed for {pluginName}

What it means

Error "Plugin creation failed for {pluginName}" thrown in microsoft/semantic-kernel.

Source

Thrown at dotnet/samples/Concepts/Plugins/CopilotAgentBasedPlugins.cs:296

        foreach (var pluginName in pluginNames)
        {
            try
            {
#pragma warning disable CA1308 // Normalize strings to uppercase
                await kernel.ImportPluginFromCopilotAgentPluginAsync(
                    pluginName,
                    Path.Combine(manifestLookupDirectory, pluginName, $"{pluginName[..^6].ToLowerInvariant()}-apiplugin.json"),
                    apiManifestPluginParameters)
                    .ConfigureAwait(false);
#pragma warning restore CA1308 // Normalize strings to uppercase
                Console.WriteLine($">> {pluginName} is created.");
#pragma warning restore SKEXP0040
            }
            catch (Exception ex)
            {
                Console.WriteLine("Plugin creation failed. Message: {0}", ex.Message);
                throw new AggregateException($"Plugin creation failed for {pluginName}", ex);
            }
        }
    }
}

View on GitHub (pinned to c028a0c7dc)

Solutions

  1. Check that the plugin name matches an entry in the Copilot agent manifest and that the manifest file exists and parses correctly.
  2. Inspect the manifest for malformed entries and retry plugin creation after fixing them.

When it happens

Trigger: Thrown at dotnet/samples/Concepts/Plugins/CopilotAgentBasedPlugins.cs:296 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of microsoft/semantic-kernel@c028a0c7dc (2026-08-13). Data as JSON: /api/errors/9b5cfab9514cfb85. Report an issue: GitHub.