madhatter22 / LinqToLdap

C# LINQ provider built on top of System.DirectoryServices.Protocols for querying and updating LDAP servers.
MIT License
45 stars 23 forks source link

Unexpected exception #8

Closed p1mike closed 5 years ago

p1mike commented 5 years ago

I'm using LinqToLdap in an old asp.net Application (Not MVC, but .net Framework 4). After undefined period of time the AppPool crashes with an System.ArgumentNullException in Application Log. This happens without any user action:

Exception: System.ArgumentNullException Message: Der Wert darf nicht NULL sein. StackTrace: bei System.Threading.Monitor.Enter(Object obj) bei LinqToLdap.PooledLdapConnectionFactory.ReleaseConnection(LdapConnection connection) bei LinqToLdap.DirectoryContext.Dispose(Boolean disposing) bei LinqToLdap.DirectoryContext.Finalize()

madhatter22 commented 5 years ago

Fixed in net-standard branch.