A Reminder to Take Care when Registering Dependencies

added by DotNetKicks
2/7/2017 5:26:54 PM

2 Kicks, 347 Views

I looked into a "fun" little problem yesterday where we were seeing occasional errors in some of our ASP.NET Core code which calls down into the ASP.NET Core Identity UserManager. We were getting a range of NullReferenceException and ObjectDisposedExceptions as well as various exceptions from Npgsql.NpgsqlConnection (we use Postgres rather than SQL in this project) stating things such as "Connection already open".


0 comments