If we register a dependency incorrectly, so BotBase can't resolve it, we won't get a correct error message.
The problem happens at
SessionManager.cs / StartSession Method 62 line
var start = BotBase.StartFormFactory.CreateForm();
and then at ServiceProviderStartFormFactory.cs / 27 line
var fb = (FormBase)ActivatorUtilities.CreateInstance(_serviceProvider, _startFormClass);
We should recieve "Cannot resolve scoped service 'X' from root provider." but insted we get System.NullReferenceException: Object reference not set to an instance of an object.
If we register a dependency incorrectly, so BotBase can't resolve it, we won't get a correct error message.
The problem happens at SessionManager.cs / StartSession Method 62 line
and then at ServiceProviderStartFormFactory.cs / 27 line
We should recieve "Cannot resolve scoped service 'X' from root provider." but insted we get System.NullReferenceException: Object reference not set to an instance of an object.