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

System.Exception: No constructor was found that had all the dependencies satisfied. #21

Open
sentry-io bot opened this issue Feb 2, 2023 · 1 comment

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 2, 2023

Sentry Issue: KNIFEHUB-6

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
  ?, in object PluginFinder.ResolveUnregistered(Type type)+(ParameterInfo parameter) => { }
  ?, in object PluginFinder.ResolveUnregistered(Type type)

System.Exception: No constructor was found that had all the dependencies satisfied.
  ?, in object PluginFinder.ResolveUnregistered(Type type)
  ?, in IEnumerable<TPlugin> PluginFinder.EnablePlugins<TPlugin>()+MoveNext()
  ?, in void HomeController.ChannelBotItem(BotDevItemModel botConfig, SettingsModel settings)+(Exception ex) => { }
  ?, in async ValueTask BaseWebSocket.ConnectAsync(string url)
  ?, in async ValueTask ChannelBot.OnlineAsync()
...
(10 additional frame(s) were not displayed)
@yiyungent
Copy link
Owner

好像是 OnlineAsync 时 使用的是保存起来的 旧的 _pluginFinder , 而 _pluginFinder 内部保存的仍为旧的 IServiceProvider

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

No branches or pull requests

1 participant