Skip to content
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

When Database Shells Configuration Provider is used there is an exception on startup #14496

Closed
MikeAlhayek opened this issue Oct 12, 2023 · 2 comments · Fixed by #14499
Closed
Milestone

Comments

@MikeAlhayek
Copy link
Member

MikeAlhayek commented Oct 12, 2023

@jtkech When Database Shells Configuration Provider is used there is an exception on startup:

System.InvalidOperationException: StreamConfigurationProviders cannot be loaded more than once.
   at Microsoft.Extensions.Configuration.StreamConfigurationProvider.Load()
   at Microsoft.Extensions.Configuration.ConfigurationRoot.Reload()
   at OrchardCore.Environment.Shell.ShellSettingsManager.LoadSettingsAsync(String tenant)
   at OrchardCore.Environment.Shell.Distributed.DistributedShellHostedService.LoadingAsync()
   at OrchardCore.Environment.Shell.ShellHost.PreCreateAndRegisterShellsAsync()
   at OrchardCore.Environment.Shell.ShellHost.InitializeAsync()
   at OrchardCore.Modules.ModularTenantContainerMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Originally posted by @wAsnk in #14117 (comment)

@jtkech
Copy link
Member

jtkech commented Oct 12, 2023

Okay, we try to reload to prevent to rebuild some configs, I will fix it this night.

@jtkech
Copy link
Member

jtkech commented Oct 12, 2023

Okay, fixed by #14499

@MikeAlhayek MikeAlhayek added this to the 1.x milestone Nov 3, 2023
@MikeAlhayek MikeAlhayek modified the milestones: 1.x, 1.8 Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants