Automated User Addition Process - Connection Pooling Error

Posted by Community Admin on 04-Aug-2018 15:59

Automated User Addition Process - Connection Pooling Error

All Replies

Posted by Community Admin on 08-Mar-2017 00:00

We are doing some custom user addition through an automated process.  Basically users get pushed to a database, and then we load them into Sitefinity when we get notified programmatically.  Inside this process, we are implementing code that matches with this:  docs.sitefinity.com/for-developers-create-user-profiles and docs.sitefinity.com/for-developers-users-and-roles.  Occasionally, we encounter this error during the process:  A transport-level error has occurred when receiving results from the server. (provider: Session Provider, error: 19 - Physical connection is not usable).  Now this doesn't happen all the time,  but it seems to be related to retained connection threads in the Manager classes.  How do we properly dispose of these?  I don't see anything in the referenced examples about how to close the connections within the Managers when we are done?  Do we just need to destroy our local objects?

This thread is closed