+To resolve this, remove custom hosting startup configuration or ensure Microsoft.ApplicationInsights.StartupBootstrapper is explicitly included in the configured hosting startup assemblies. If you intend to control startup assemblies programmatically, note that host configuration takes precedence over the ASPNETCORE_HOSTINGSTARTUPASSEMBLIES environment variable, then follow the sample shown in the public docs [here](https://learn.microsoft.com/aspnet/core/fundamentals/host/platform-specific-configuration?view=aspnetcore-8.0#specify-the-hosting-startup-assembly).
0 commit comments