Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

ConfigurationException in development mode on ASP.NET Core 2.0 #11

Open
tuscen opened this issue Dec 7, 2017 · 0 comments
Open

ConfigurationException in development mode on ASP.NET Core 2.0 #11

tuscen opened this issue Dec 7, 2017 · 0 comments
Labels

Comments

@tuscen
Copy link
Member

tuscen commented Dec 7, 2017

When used with ASP.NET Core 2.0 and ASPNETCORE_ENVIRONMENT is set to Development and long polling mode is used UseTelegramBotLongPolling throws this exception.

Creating explicit scope inside extension methods (UseTelegramBotWebhook, etc) and passing scoped ServiceProvider to FindBotManager helps but I don't understand why. When used with webhook everything works fine and no exception is thrown.

@tuscen tuscen added the bug label Mar 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant